From 56dc7db069f8b0bdfd739d1ff47dafbe6f39513e Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Tue, 1 Aug 2017 12:16:56 +0200 Subject: 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 --- tests/integration/api_image_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.1