summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-02-22 12:21:29 +0100
committerSoren Hansen <soren@linux2go.dk>2011-02-22 12:21:29 +0100
commitb5e6601f76d64a96d6c7de5e9acdf5a8cf0fe8e9 (patch)
treeb2ff9d69633d3d24e42ba01fce8cc27bc664dbb2 /nova/tests
parent54f2362d09393ad6ccdfee5689d4f547c69b3f42 (diff)
PEP8 adjustments.
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_network.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/nova/tests/test_network.py b/nova/tests/test_network.py
index afd38272d..2bdf3709e 100644
--- a/nova/tests/test_network.py
+++ b/nova/tests/test_network.py
@@ -89,7 +89,6 @@ COMMIT
super(IptablesManagerTestCase, self).setUp()
self.manager = linux_net.IptablesManager()
-
def test_filter_rules_are_wrapped(self):
current_lines = self.sample_filter.split('\n')
@@ -114,8 +113,8 @@ COMMIT
':nova-compute-SNATTING - [0:0]',
':nova-compute-PREROUTING - [0:0]',
':nova-compute-POSTROUTING - [0:0]']:
- self.assertTrue(line in new_lines, "One of nova-compute's chains "
- "went missing.")
+ self.assertTrue(line in new_lines, "One of nova-compute's chains "
+ "went missing.")
seen_lines = set()
for line in new_lines:
@@ -138,7 +137,6 @@ COMMIT
% (chain, chain) in new_lines,
"Built-in chain %s not wrapped" % (chain,))
-
def test_filter_rules(self):
current_lines = self.sample_filter.split('\n')
new_lines = self.manager._modify_rules(current_lines,
@@ -148,8 +146,8 @@ COMMIT
':nova-compute-INPUT - [0:0]',
':nova-compute-local - [0:0]',
':nova-compute-OUTPUT - [0:0]']:
- self.assertTrue(line in new_lines, "One of nova-compute's chains"
- " went missing.")
+ self.assertTrue(line in new_lines, "One of nova-compute's chains"
+ " went missing.")
seen_lines = set()
for line in new_lines: