replaced ugly INSTANCE_TYPE constant with (slightly less ugly) stubs

This commit is contained in:
Ken Pepple
2011-02-28 16:28:46 -08:00
parent aa489d433c
commit 4f294a6ba3
2 changed files with 1 additions and 9 deletions

View File

@@ -233,7 +233,7 @@ class XenAPIVMTestCase(test.TestCase):
vm = vms[0]
# Check that m1.large above turned into the right thing.
instance_type = test.INSTANCE_TYPES['m1.large']
instance_type = db.instance_type_get_by_name(conn, 'm1.large')
mem_kib = long(instance_type['memory_mb']) << 10
mem_bytes = str(mem_kib << 10)
vcpus = instance_type['vcpus']