From c39dbb53bcbc0df82d9052248ee8029613858813 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Mon, 22 Oct 2012 13:45:28 -0700 Subject: Fix and enable pep8 E502, E712 pep8 E502 and E712 were temporarily disabld when upgrading to pep8 1.2 Change-Id: If5158304cb8e73ef844dea9f726df6f8fe305269 --- nova/tests/network/test_linux_net.py | 2 +- nova/tests/test_iptables_network.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/tests') diff --git a/nova/tests/network/test_linux_net.py b/nova/tests/network/test_linux_net.py index fd6708343..72bf71674 100644 --- a/nova/tests/network/test_linux_net.py +++ b/nova/tests/network/test_linux_net.py @@ -222,7 +222,7 @@ class LinuxNetworkTestCase(test.TestCase): is_admin=True) def get_vifs(_context, instance_uuid): - return [vif for vif in vifs if vif['instance_uuid'] == \ + return [vif for vif in vifs if vif['instance_uuid'] == instance_uuid] def get_instance(_context, instance_id): diff --git a/nova/tests/test_iptables_network.py b/nova/tests/test_iptables_network.py index 166e28a5c..c8f310303 100644 --- a/nova/tests/test_iptables_network.py +++ b/nova/tests/test_iptables_network.py @@ -97,7 +97,7 @@ class IptablesManagerTestCase(test.TestCase): table.remove_rule('FORWARD', '-s 1.2.3.4/5 -j DROP') new_lines = self.manager._modify_rules(current_lines, table) self.assertTrue('[0:0] -A %s-FORWARD ' - '-s 1.2.3.4/5 -j DROP' % self.binary_name \ + '-s 1.2.3.4/5 -j DROP' % self.binary_name not in new_lines) def test_nat_rules(self): -- cgit