marvin_refactor: fixing unittests

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-03-18 18:15:40 +05:30
parent 5ee671fc9a
commit 35c7c5713a
1 changed files with 2 additions and 2 deletions

View File

@ -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()
pass