We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ce02b9 commit 21cc991Copy full SHA for 21cc991
tests/integration_test.py
@@ -351,14 +351,18 @@ def runTest(self):
351
352
class TestRenameContainer(BaseTestCase):
353
def runTest(self):
354
+ version = self.client.version()['Version']
355
name = 'hong_meiling'
356
res = self.client.create_container('busybox', 'true')
357
self.assertIn('Id', res)
358
self.tmp_containers.append(res['Id'])
359
self.client.rename(res, name)
360
inspect = self.client.inspect_container(res['Id'])
361
self.assertIn('Name', inspect)
- self.assertEqual(name, inspect['Name'])
362
+ if version == '1.5.0':
363
+ self.assertEqual(name, inspect['Name'])
364
+ else:
365
+ self.assertEqual('/{0}'.format(name), inspect['Name'])
366
367
368
class TestStartContainer(BaseTestCase):
0 commit comments