mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
4f07679d49
commit
1c9cd9d360
@ -92,7 +92,7 @@ class Services:
|
|||||||
"displaytext": "Small Instance",
|
"displaytext": "Small Instance",
|
||||||
"cpunumber": 1,
|
"cpunumber": 1,
|
||||||
"cpuspeed": 100,
|
"cpuspeed": 100,
|
||||||
"memory": 256,
|
"memory": 128,
|
||||||
},
|
},
|
||||||
"medium":
|
"medium":
|
||||||
{
|
{
|
||||||
@ -433,7 +433,7 @@ class TestServiceOfferings(cloudstackTestCase):
|
|||||||
)
|
)
|
||||||
self.assertAlmostEqual(
|
self.assertAlmostEqual(
|
||||||
int(total_mem) / 1024, # In MBs
|
int(total_mem) / 1024, # In MBs
|
||||||
self.small_offering.memory,
|
int(self.small_offering.memory),
|
||||||
"Check Memory(kb) for small offering"
|
"Check Memory(kb) for small offering"
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user