This commit is contained in:
Ken Pepple
2011-08-20 12:43:50 -07:00
parent 0544f5c910
commit fd157386a4

View File

@@ -51,7 +51,7 @@ class InstanceTypeTestCase(test.TestCase):
"""return an instance type name not in the DB"""
nonexistant_flavor = "sdfsfsdf"
flavors = instance_types.get_all_types()
while flavors.has_key(nonexistant_flavor):
while nonexistant_flavor in flavors:
nonexistant_flavor = nonexistant_flavor.join("z")
else:
return nonexistant_flavor