diff options
author | Joffrey F <joffrey@docker.com> | 2018-01-26 14:34:20 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2018-01-26 14:34:20 -0800 |
commit | 8b5a52ae0ced380fbd761f891830107d8817f240 (patch) | |
tree | 8c23be396696ad8510c291313ffad5c64d572241 /tests/integration/models_images_test.py | |
parent | 601c5a41d2e6d281fa9917a0dd9b66dd45b8dcae (diff) | |
download | docker-py-hongbin-image-load.tar.gz |
Error handling in ImageCollection.loadhongbin-image-load
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/integration/models_images_test.py')
-rw-r--r-- | tests/integration/models_images_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/integration/models_images_test.py b/tests/integration/models_images_test.py index 8f812d9..8840e15 100644 --- a/tests/integration/models_images_test.py +++ b/tests/integration/models_images_test.py @@ -71,6 +71,11 @@ class ImageCollectionTest(BaseIntegrationTest): image = client.images.pull('alpine', tag='3.3') assert 'alpine:3.3' in image.attrs['RepoTags'] + def test_load_error(self): + client = docker.from_env(version=TEST_API_VERSION) + with pytest.raises(docker.errors.ImageLoadError): + client.images.load('abc') + class ImageTest(BaseIntegrationTest): |