From 944574420c26fbbf2ef4a6d5198f403f6474147e Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Thu, 2 Feb 2012 12:00:01 +0000 Subject: cleanup test case to use integers not strings These fields are integers, so to avoid confusion while grepping the source for example, make them consistently integers Change-Id: Iea4496532de89a8d67e141fe4ec1ac65f5d0676d --- nova/tests/test_compute.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nova/tests/test_compute.py b/nova/tests/test_compute.py index 0ce9a4ea5..54137a55c 100644 --- a/nova/tests/test_compute.py +++ b/nova/tests/test_compute.py @@ -171,12 +171,12 @@ class BaseTestCase(test.TestCase): context = self.context.elevated() inst = {} inst['name'] = 'm1.small' - inst['memory_mb'] = '1024' - inst['vcpus'] = '1' - inst['root_gb'] = '20' - inst['ephemeral_gb'] = '10' + inst['memory_mb'] = 1024 + inst['vcpus'] = 1 + inst['root_gb'] = 20 + inst['ephemeral_gb'] = 10 inst['flavorid'] = '1' - inst['swap'] = '2048' + inst['swap'] = 2048 inst['rxtx_factor'] = 1 inst.update(params) return db.instance_type_create(context, inst)['id'] -- cgit