From 1c9cd9d36077331a7b25d19e18ae73918e5662f6 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Fri, 7 Jun 2013 14:49:00 +0530 Subject: [PATCH] CLOUDSTACK-2884: str object interpreted as index Casting to an int for almostEqual comparison Signed-off-by: Prasanna Santhanam --- test/integration/smoke/test_service_offerings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/smoke/test_service_offerings.py b/test/integration/smoke/test_service_offerings.py index a56e34d2874..0213c04cb02 100644 --- a/test/integration/smoke/test_service_offerings.py +++ b/test/integration/smoke/test_service_offerings.py @@ -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