libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1475958 - /libcloud/trunk/libcloud/test/compute/test_vcloud.py
Date Thu, 25 Apr 2013 21:04:04 GMT
Author: tomaz
Date: Thu Apr 25 21:04:04 2013
New Revision: 1475958

URL: http://svn.apache.org/r1475958
Log:
Assert that passing api_version='5.1' to VCloudNodeDriver works correctly.

Part of LIBCLOUD-320.

Modified:
    libcloud/trunk/libcloud/test/compute/test_vcloud.py

Modified: libcloud/trunk/libcloud/test/compute/test_vcloud.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/test/compute/test_vcloud.py?rev=1475958&r1=1475957&r2=1475958&view=diff
==============================================================================
--- libcloud/trunk/libcloud/test/compute/test_vcloud.py (original)
+++ libcloud/trunk/libcloud/test/compute/test_vcloud.py Thu Apr 25 21:04:04 2013
@@ -21,6 +21,7 @@ from libcloud.utils.py3 import httplib, 
 
 from libcloud.compute.drivers.vcloud import TerremarkDriver, VCloudNodeDriver, Subject
 from libcloud.compute.drivers.vcloud import VCloud_1_5_NodeDriver, ControlAccess
+from libcloud.compute.drivers.vcloud import VCloud_5_1_NodeDriver
 from libcloud.compute.base import Node, NodeImage
 from libcloud.compute.types import NodeState
 
@@ -277,7 +278,9 @@ class VCloud_5_1_Tests(unittest.TestCase
         VCloudNodeDriver.connectionCls.host = 'test'
         VCloudNodeDriver.connectionCls.conn_classes = (None, VCloud_1_5_MockHttp)
         VCloud_1_5_MockHttp.type = None
-        self.driver = VCloud_1_5_NodeDriver(*VCLOUD_PARAMS, **{'api_version': '5.1'})
+        self.driver = VCloudNodeDriver(*VCLOUD_PARAMS, **{'api_version': '5.1'})
+
+        self.assertTrue(isinstance(self.driver, VCloud_5_1_NodeDriver))
 
     def _test_create_node_valid_ex_vm_memory(self):
         # TODO: Hook up the fixture



Mime
View raw message