summaryrefslogtreecommitdiff
path: root/tests/integration/models_images_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/models_images_test.py')
-rw-r--r--tests/integration/models_images_test.py5
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):