libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [2/4] libcloud git commit: Added assert for MCP2 as well
Date Mon, 29 Feb 2016 05:22:12 GMT
Added assert for MCP2 as well


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

Branch: refs/heads/trunk
Commit: 8dcd0a8317cd649a8f099a64101cdb0bea12e0c5
Parents: afbb8ec
Author: Jeffrey Dunham <jeffrey.a.dunham@gmail.com>
Authored: Sat Feb 20 00:48:44 2016 -0500
Committer: anthony-shaw <anthony.p.shaw@gmail.com>
Committed: Mon Feb 29 16:21:00 2016 +1100

----------------------------------------------------------------------
 libcloud/test/compute/test_dimensiondata.py | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/8dcd0a83/libcloud/test/compute/test_dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_dimensiondata.py b/libcloud/test/compute/test_dimensiondata.py
index f6484f3..b549a4c 100644
--- a/libcloud/test/compute/test_dimensiondata.py
+++ b/libcloud/test/compute/test_dimensiondata.py
@@ -78,6 +78,11 @@ class DimensionDataTests(unittest.TestCase, TestCaseMixin):
         self.assertTrue(isinstance(node.extra['disks'], list))
         self.assertTrue(isinstance(node.extra['disks'][0], DimensionDataServerDisk))
 
+        self.assertTrue(isinstance(ret[0].extra['disks'], list))
+        self.assertTrue(isinstance(ret[0].extra['disks'][0], DimensionDataServerDisk))
+        self.assertTrue(isinstance(ret[1].extra['disks'], list))
+        self.assertTrue(isinstance(ret[1].extra['disks'][0], DimensionDataServerDisk))
+
     def test_list_nodes_response_PAGINATED(self):
         DimensionDataMockHttp.type = 'PAGINATED'
         ret = self.driver.list_nodes()


Mime
View raw message