def setUp(self):
    self.apiclient = self.testClient.getApiClient()
    self.dbclient = self.testClient.getDbConnection()
    self.services = Services().services
    self.services['virtual_machine']['zoneid'] = self.zone.id
    self.services['iso']['zoneid'] = self.zone.id
    self.services['virtual_machine']['template'] = self.template.id
    self.account = Account.create(self.apiclient, self.services['account'], domainid=self.domain.id)
    self.cleanup = [self.account]
    return
def setUp(self):
    self.apiclient = self.testClient.getApiClient()
    self.dbclient = self.testClient.getDbConnection()
    self.services = Services().services
    self.services['virtual_machine']['zoneid'] = self.zone.id
    self.services['iso']['zoneid'] = self.zone.id
    self.services['virtual_machine']['template'] = self.template.id
    self.account = Account.create(self.apiclient, self.services['account'], domainid=self.domain.id)
    self.cleanup = [self.account]
    return