Add missing setUp method to some OpenStack tests.

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

Branch: refs/heads/0.12.x
Commit: 9c0d11a4cf7e588ad87c7e57311bbb1d955cc2a7
Parents: 4925333
Author: Tomaz Muraus <[email protected]>
Authored: Wed Jun 26 19:13:25 2013 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Wed Jun 26 19:13:25 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/9c0d11a4/libcloud/test/compute/test_openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_openstack.py 
b/libcloud/test/compute/test_openstack.py
index e77aefb..1a9ad35 100644
--- a/libcloud/test/compute/test_openstack.py
+++ b/libcloud/test/compute/test_openstack.py
@@ -77,6 +77,9 @@ class OpenStack_1_0_ResponseTestCase(unittest.TestCase):
 
 class OpenStackServiceCatalogTests(unittest.TestCase):
     # TODO refactor and move into libcloud/test/common
+    def setUp(self):
+        OpenStackBaseConnection.conn_classes = (OpenStackMockHttp, 
OpenStackMockHttp)
+
     def test_connection_get_service_catalog(self):
         connection = OpenStackBaseConnection(*OPENSTACK_PARAMS)
         connection.conn_classes = (OpenStackMockHttp, OpenStackMockHttp)
@@ -100,6 +103,9 @@ class OpenStackServiceCatalogTests(unittest.TestCase):
 
 class OpenStackAuthConnectionTests(unittest.TestCase):
     # TODO refactor and move into libcloud/test/common
+    def setUp(self):
+        OpenStackBaseConnection.conn_classes = (OpenStackMockHttp, 
OpenStackMockHttp)
+
     def test_basic_authentication(self):
         tuples = [
            ('1.0', OpenStackMockHttp),

Reply via email to