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/02/29 06:22:12 UTC
[2/4] libcloud git commit: Added assert for MCP2 as well
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 <je...@gmail.com>
Authored: Sat Feb 20 00:48:44 2016 -0500
Committer: anthony-shaw <an...@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()