summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-07-22 22:12:22 +0000
committerVishvananda Ishaya <vishvananda@gmail.com>2011-07-22 22:12:22 +0000
commit4e4bbda2a15df9f2366488d092bc466655a170b9 (patch)
treebc5dcee029a0cb50451b9c3e84bb138bd8027661 /nova/tests
parent164afd51017721b9cbaf2880b9dada3d4cd9b42c (diff)
pep cleanup
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/test_servers.py3
-rw-r--r--nova/tests/api/openstack/test_zones.py3
-rw-r--r--nova/tests/test_api.py1
3 files changed, 4 insertions, 3 deletions
diff --git a/nova/tests/api/openstack/test_servers.py b/nova/tests/api/openstack/test_servers.py
index f05310325..98d4bed52 100644
--- a/nova/tests/api/openstack/test_servers.py
+++ b/nova/tests/api/openstack/test_servers.py
@@ -1306,7 +1306,8 @@ class ServersTest(test.TestCase):
'''
def return_servers_with_host(context, *args, **kwargs):
- return [stub_instance(i, 'fake', 'fake', None, None, i % 2) for i in xrange(5)]
+ return [stub_instance(i, 'fake', 'fake', None, None, i % 2)
+ for i in xrange(5)]
self.stubs.Set(nova.db.api, 'instance_get_all_by_project',
return_servers_with_host)
diff --git a/nova/tests/api/openstack/test_zones.py b/nova/tests/api/openstack/test_zones.py
index 4a208ea24..3deb844aa 100644
--- a/nova/tests/api/openstack/test_zones.py
+++ b/nova/tests/api/openstack/test_zones.py
@@ -189,7 +189,8 @@ class ZonesTest(test.TestCase):
self.assertEqual(res_dict['zone']['cap2'], 'c;d')
def test_zone_select(self):
- self.flags(build_plan_encryption_key='c286696d887c9aa0611bbb3e2025a45a')
+ key = 'c286696d887c9aa0611bbb3e2025a45a'
+ self.flags(build_plan_encryption_key=key)
self.stubs.Set(api, 'select', zone_select)
req = webob.Request.blank('/v1.0/zones/select')
diff --git a/nova/tests/test_api.py b/nova/tests/test_api.py
index 292f9d668..3ec1c9abf 100644
--- a/nova/tests/test_api.py
+++ b/nova/tests/test_api.py
@@ -395,7 +395,6 @@ class ApiEc2TestCase(test.TestCase):
self.expect_http()
self.mox.ReplayAll()
-
security_group_name = "".join(random.choice("sdiuisudfsdcnpaqwertasd")
for x in range(random.randint(4, 8)))