summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorHisaharu Ishii <ishii.hisaharu@lab.ntt.co.jp>2011-08-22 11:50:44 -0700
committerHisaharu Ishii <ishii.hisaharu@lab.ntt.co.jp>2011-08-22 11:50:44 -0700
commitf05da72e28fac1bfc7f208ce57d4462a53f290f2 (patch)
tree0e2261fe0bdcfc4096eb706de942247e67924efd /nova/tests
parent9bcd9fc5b339af97d161a65f3da84ed1bd99da2f (diff)
Fix pep8
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_nova_manage.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/tests/test_nova_manage.py b/nova/tests/test_nova_manage.py
index 4c828da16..d6edc8ba9 100644
--- a/nova/tests/test_nova_manage.py
+++ b/nova/tests/test_nova_manage.py
@@ -88,6 +88,7 @@ class FixedIpCommandsTestCase(test.TestCase):
'10.0.0.100')
self.assertEqual(address['reserved'], False)
+
class NetworkCommandsTestCase(test.TestCase):
def setUp(self):
super(NetworkCommandsTestCase, self).setUp()
@@ -101,7 +102,7 @@ class NetworkCommandsTestCase(test.TestCase):
super(NetworkCommandsTestCase, self).tearDown()
def test_create(self):
- FLAGS.network_manager='nova.network.manager.VlanManager'
+ FLAGS.network_manager = 'nova.network.manager.VlanManager'
self.commands.create(
label='Test',
fixed_range_v4='10.2.0.0/24',
@@ -173,7 +174,8 @@ class NetworkCommandsTestCase(test.TestCase):
net = db.network_get_by_cidr(self.context, '10.2.0.0/24')
self.assertEqual(net['project_id'], None)
self.assertEqual(net['host'], None)
- self.commands.modify('10.2.0.0/24', project='test_project', host='test_host')
+ self.commands.modify('10.2.0.0/24', project='test_project',
+ host='test_host')
net = db.network_get_by_cidr(self.context, '10.2.0.0/24')
self.assertEqual(net['project_id'], 'test_project')
self.assertEqual(net['host'], 'test_host')