summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCecile Tonglet <cecile.tonglet@gmail.com>2017-08-01 12:16:56 +0200
committerJoffrey F <f.joffrey@gmail.com>2017-08-15 14:43:32 -0700
commit56dc7db069f8b0bdfd739d1ff47dafbe6f39513e (patch)
tree55b7691f613ca4c5d87bb032b57f981afde80a7e /tests
parent369168e29c17b69dbffb4b796a4df6e9bc7e3678 (diff)
downloaddocker-py-56dc7db069f8b0bdfd739d1ff47dafbe6f39513e.tar.gz
Return the result of the API when using remove_image and load_image
Those calls return result that can be used by the developers. Signed-off-by: Cecile Tonglet <cecile.tonglet@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/api_image_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/api_image_test.py b/tests/integration/api_image_test.py
index 917bc50..192e6f8 100644
--- a/tests/integration/api_image_test.py
+++ b/tests/integration/api_image_test.py
@@ -113,7 +113,8 @@ class RemoveImageTest(BaseAPIIntegrationTest):
self.assertIn('Id', res)
img_id = res['Id']
self.tmp_imgs.append(img_id)
- self.client.remove_image(img_id, force=True)
+ logs = self.client.remove_image(img_id, force=True)
+ self.assertIn({"Deleted": img_id}, logs)
images = self.client.images(all=True)
res = [x for x in images if x['Id'].startswith(img_id)]
self.assertEqual(len(res), 0)