pep8
This commit is contained in:
@@ -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
|
||||
@@ -59,8 +59,8 @@ class InstanceTypeTestCase(test.TestCase):
|
||||
def _nonexistant_flavor_id(self):
|
||||
"""return an instance type ID not in the DB"""
|
||||
nonexistant_flavor = 2700
|
||||
flavor_ids = [ value["id"] for key, value in\
|
||||
instance_types.get_all_types().iteritems() ]
|
||||
flavor_ids = [value["id"] for key, value in\
|
||||
instance_types.get_all_types().iteritems()]
|
||||
while nonexistant_flavor in flavor_ids:
|
||||
nonexistant_flavor += 1
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user