summaryrefslogtreecommitdiff
path: root/tests/integration/api_image_test.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2017-01-30 17:59:03 -0800
committerJoffrey F <joffrey@docker.com>2017-01-30 17:59:03 -0800
commit9c61ed908c1276688c64eab42ad641b972b4d6d0 (patch)
tree34340a9a113ca0005da980d72d320078a0e456bb /tests/integration/api_image_test.py
parent8bdbcebc3232ea2abd3b2d628b779103ffecb889 (diff)
downloaddocker-py-prunes.tar.gz
Add prune_volumes methodprunes
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/integration/api_image_test.py')
-rw-r--r--tests/integration/api_image_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/api_image_test.py b/tests/integration/api_image_test.py
index 0f6753f..10e95fe 100644
--- a/tests/integration/api_image_test.py
+++ b/tests/integration/api_image_test.py
@@ -299,5 +299,5 @@ class PruneImagesTest(BaseAPIIntegrationTest):
self.tmp_imgs.append('hello-world')
img_id = self.client.inspect_image('hello-world')['Id']
result = self.client.prune_images()
- assert img_id in result['ImagesDeleted']
+ assert img_id in [img['Deleted'] for img in result['ImagesDeleted']]
assert result['SpaceReclaimed'] > 0