CLOUDSTACK-2884: str object interpreted as index

Casting to an int for almostEqual comparison

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-06-07 14:49:00 +05:30
parent 4f07679d49
commit 1c9cd9d360

View File

@ -92,7 +92,7 @@ class Services:
"displaytext": "Small Instance",
"cpunumber": 1,
"cpuspeed": 100,
"memory": 256,
"memory": 128,
},
"medium":
{
@ -433,7 +433,7 @@ class TestServiceOfferings(cloudstackTestCase):
)
self.assertAlmostEqual(
int(total_mem) / 1024, # In MBs
self.small_offering.memory,
int(self.small_offering.memory),
"Check Memory(kb) for small offering"
)
return