mirror of https://github.com/docker/docker-py.git
Added assertIn shim for py2.6
This commit is contained in:
parent
ec85f126ed
commit
6e0b5a8d70
|
@ -111,6 +111,11 @@ class DockerClientTest(Cleanup, unittest.TestCase):
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
self.client.close()
|
self.client.close()
|
||||||
|
|
||||||
|
def assertIn(self, object, collection):
|
||||||
|
if six.PY2 and sys.version_info[1] <= 6:
|
||||||
|
return self.assertTrue(object in collection)
|
||||||
|
return super(DockerClientTest, self).assertIn(object, collection)
|
||||||
|
|
||||||
def base_create_payload(self, img='busybox', cmd=None):
|
def base_create_payload(self, img='busybox', cmd=None):
|
||||||
if not cmd:
|
if not cmd:
|
||||||
cmd = ['true']
|
cmd = ['true']
|
||||||
|
|
Loading…
Reference in New Issue