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