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:13 UTC

[5/6] libcloud git commit: a little clearer way

a little clearer way


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

Branch: refs/heads/trunk
Commit: 0d1a9d2920340adc7cc1b10c39701d34fd0db0ae
Parents: 5265ac4
Author: Mario Loria <ma...@arroyonetworks.com>
Authored: Mon Oct 10 21:22:27 2016 -0400
Committer: Mario Loria <ma...@arroyonetworks.com>
Committed: Mon Oct 10 21:22:27 2016 -0400

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/0d1a9d29/libcloud/test/container/test_rancher.py
----------------------------------------------------------------------
diff --git a/libcloud/test/container/test_rancher.py b/libcloud/test/container/test_rancher.py
index 53d7b18..f0a6edb 100644
--- a/libcloud/test/container/test_rancher.py
+++ b/libcloud/test/container/test_rancher.py
@@ -159,15 +159,15 @@ 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")
+        started = container.start()
+        self.assertEqual(started.id, "1i31")
+        self.assertEqual(started.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")
+        stopped = container.stop()
+        self.assertEqual(stopped.id, "1i31")
+        self.assertEqual(stopped.name, "newcontainer")
 
     def test_ex_search_containers(self):
         containers = self.driver.ex_search_containers({"state": "running"})
@@ -175,9 +175,9 @@ 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")
+        destroyed = container.destroy()
+        self.assertEqual(destroyed.id, "1i31")
+        self.assertEqual(destroyed.name, "newcontainer")
 
 
 class RancherMockHttp(MockHttp):