summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-02-02 16:32:42 +0000
committerGerrit Code Review <review@openstack.org>2012-02-02 16:32:42 +0000
commite58e492020f2bbd1cf54226b630b9f1e9571df69 (patch)
tree75f19f0454b3a2d9f36307b60230a5ac82d917d8
parent3298d23d03de46966e5584688d689576b974b35d (diff)
parent944574420c26fbbf2ef4a6d5198f403f6474147e (diff)
downloadnova-e58e492020f2bbd1cf54226b630b9f1e9571df69.tar.gz
nova-e58e492020f2bbd1cf54226b630b9f1e9571df69.tar.xz
nova-e58e492020f2bbd1cf54226b630b9f1e9571df69.zip
Merge "cleanup test case to use integers not strings"
-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']