Add hello-world to temp images in pull tests

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2015-09-09 17:09:29 -07:00
parent 1fb2db4951
commit b1c2475698
1 changed files with 2 additions and 0 deletions

View File

@ -1120,6 +1120,7 @@ class TestPull(BaseTestCase):
except docker.errors.APIError:
pass
res = self.client.pull('hello-world')
self.tmp_imgs.append('hello-world')
self.assertEqual(type(res), six.text_type)
self.assertGreaterEqual(
len(self.client.images('hello-world')), 1
@ -1135,6 +1136,7 @@ class TestPullStream(BaseTestCase):
except docker.errors.APIError:
pass
stream = self.client.pull('hello-world', stream=True)
self.tmp_imgs.append('hello-world')
for chunk in stream:
if six.PY3:
chunk = chunk.decode('utf-8')