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
|
||||
|
||||
Reference in New Issue
Block a user