You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/10/11 22:42:12 UTC

[4/6] libcloud git commit: more asserts

more asserts


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5265ac49
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5265ac49
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5265ac49

Branch: refs/heads/trunk
Commit: 5265ac49372b1b9773c110ee9f2c6d4365e730ea
Parents: 296285e
Author: Mario Loria <ma...@arroyonetworks.com>
Authored: Mon Oct 10 21:17:37 2016 -0400
Committer: Mario Loria <ma...@arroyonetworks.com>
Committed: Mon Oct 10 21:17:37 2016 -0400

----------------------------------------------------------------------
 libcloud/test/container/test_rancher.py | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/5265ac49/libcloud/test/container/test_rancher.py
----------------------------------------------------------------------
diff --git a/libcloud/test/container/test_rancher.py b/libcloud/test/container/test_rancher.py
index 9a86dea..53d7b18 100644
--- a/libcloud/test/container/test_rancher.py
+++ b/libcloud/test/container/test_rancher.py
@@ -160,10 +160,14 @@ class RancherContainerDriverTestCase(unittest.TestCase):
     def test_start_container(self):
         container = self.driver.get_container("1i31")
         container.start()
+        self.assertEqual(container.id, "1i31")
+        self.assertEqual(container.name, "newcontainer")
 
     def test_stop_container(self):
         container = self.driver.get_container("1i31")
         container.stop()
+        self.assertEqual(container.id, "1i31")
+        self.assertEqual(container.name, "newcontainer")
 
     def test_ex_search_containers(self):
         containers = self.driver.ex_search_containers({"state": "running"})
@@ -172,6 +176,8 @@ class RancherContainerDriverTestCase(unittest.TestCase):
     def test_destroy_container(self):
         container = self.driver.get_container("1i31")
         container.destroy()
+        self.assertEqual(container.id, "1i31")
+        self.assertEqual(container.name, "newcontainer")
 
 
 class RancherMockHttp(MockHttp):