summaryrefslogtreecommitdiff
path: root/tests/integration_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration_test.py')
-rw-r--r--tests/integration_test.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/integration_test.py b/tests/integration_test.py
index 32f32a0..46b630e 100644
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -322,6 +322,18 @@ class TestCreateContainerWithName(BaseTestCase):
self.assertEqual('/foobar', inspect['Name'])
+class TestRenameContainer(BaseTestCase):
+ def runTest(self):
+ name = 'hong_meiling'
+ res = self.client.create_container('busybox', 'true')
+ self.assertIn('Id', res)
+ self.tmp_containers.append(res['Id'])
+ self.client.rename(res, name)
+ inspect = self.client.inspect_container(res['Id'])
+ self.assertIn('Name', inspect)
+ self.assertEqual(name, inspect['Name'])
+
+
class TestStartContainer(BaseTestCase):
def runTest(self):
res = self.client.create_container('busybox', 'true')