integration test fix: test iso - obj reference within classmethod

This commit is contained in:
Prasanna Santhanam 2013-01-10 20:29:12 +05:30
parent cd7f771615
commit 1b8e17255f
1 changed files with 4 additions and 4 deletions

View File

@ -219,14 +219,14 @@ class TestISO(cloudstackTestCase):
# Finding the OsTypeId from Ostype
ostypes = list_os_types(
cls.api_client,
description=self.services["ostype"]
description=cls.services["ostype"]
)
if not isinstance(ostypes, list):
raise unittest.SkipTest("OSTypeId for given description not found")
self.services["iso_1"]["ostypeid"] = ostypes[0].id
self.services["iso_2"]["ostypeid"] = ostypes[0].id
self.services["ostypeid"] = ostypes[0].id
cls.services["iso_1"]["ostypeid"] = ostypes[0].id
cls.services["iso_2"]["ostypeid"] = ostypes[0].id
cls.services["ostypeid"] = ostypes[0].id
cls.iso_1 = Iso.create(
cls.api_client,