summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPádraig Brady <pbrady@redhat.com>2012-02-02 12:00:01 +0000
committerPádraig Brady <pbrady@redhat.com>2012-02-02 12:02:56 +0000
commit944574420c26fbbf2ef4a6d5198f403f6474147e (patch)
tree0331c9c1465aa379d688fbf6dd743c06bb8a6c38
parent638ea669694f3083145e2300b362ded6749d74a1 (diff)
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
-rw-r--r--nova/tests/test_compute.py10
1 files 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']