Fix a test case that assumes busybox image id.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2015-09-22 12:24:56 -04:00
commit d01f712376
2 changed files with 15 additions and 2 deletions

View file

@ -1,5 +1,8 @@
from __future__ import unicode_literals
from __future__ import absolute_import
from docker import errors
from compose.service import Service
from compose.config import ServiceLoader
from compose.const import LABEL_PROJECT
@ -8,6 +11,13 @@ from compose.progress_stream import stream_output
from .. import unittest
def pull_busybox(client):
try:
client.inspect_image('busybox:latest')
except errors.APIError:
client.pull('busybox:latest', stream=False)
class DockerClientTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):