fixing unittests

Signed-off-by: Prasanna Santhanam <[email protected]>


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

Branch: refs/heads/marvin_refactor
Commit: a57cbfb59a6892b2f6ff7aca6e241b5641600ac0
Parents: 5117278
Author: Prasanna Santhanam <[email protected]>
Authored: Mon Mar 18 18:15:40 2013 +0530
Committer: Prasanna Santhanam <[email protected]>
Committed: Sun Mar 31 22:00:35 2013 +0530

----------------------------------------------------------------------
 .../integration/lib/factory/test/testFactories.py  |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a57cbfb5/tools/marvin/marvin/integration/lib/factory/test/testFactories.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/integration/lib/factory/test/testFactories.py 
b/tools/marvin/marvin/integration/lib/factory/test/testFactories.py
index b5a20dd..257239c 100644
--- a/tools/marvin/marvin/integration/lib/factory/test/testFactories.py
+++ b/tools/marvin/marvin/integration/lib/factory/test/testFactories.py
@@ -22,7 +22,7 @@ from marvin.cloudstackTestClient import cloudstackTestClient
 
 class AccountFactoryTest(unittest.TestCase):
     def setUp(self):
-        self.apiClient = cloudstackTestClient(mgtSvr='localhost')
+        self.apiClient = 
cloudstackTestClient(mgtSvr='localhost').getApiClient()
 
     def test_userAccountFactory(self):
         af = AccountFactory.AccountFactory()
@@ -40,4 +40,4 @@ class AccountFactoryTest(unittest.TestCase):
         self.assertTrue(accnt is not None, msg="no account created by factory")
 
     def tearDown(self):
-        self.apiClient.close()
\ No newline at end of file
+        pass

Reply via email to