summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Southgate <andy.southgate@citrix.com>2011-01-21 16:23:30 +0000
committerAndy Southgate <andy.southgate@citrix.com>2011-01-21 16:23:30 +0000
commit48990b109eb39f0dd4ea7bf86be79f6e03c3ad74 (patch)
treeb47f1996bc89ebc58cf5c0677fd43534d34c4380
parent9039c2cc59904a72fc71255a3a31ec2b17018963 (diff)
OS55: pylint fixes
-rw-r--r--nova/tests/test_xenapi.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/tests/test_xenapi.py b/nova/tests/test_xenapi.py
index 2a32845d3..c94aeefd1 100644
--- a/nova/tests/test_xenapi.py
+++ b/nova/tests/test_xenapi.py
@@ -249,7 +249,8 @@ class XenAPIVMTestCase(test.TestCase):
xenstore_data = xenapi_fake.VM_get_xenstore_data(vm_ref)
key_prefix = 'vm-data/vif/22_33_2A_B3_CC_DD/tcpip/'
tcpip_data = dict([(k.replace(key_prefix, ''), v)
- for k, v in xenstore_data.iteritems() if k.startswith(key_prefix) ])
+ for k, v in xenstore_data.iteritems()
+ if k.startswith(key_prefix) ])
self.assertEquals(tcpip_data, {
'BroadcastAddress/data/0': '10.0.0.255',
@@ -272,7 +273,8 @@ class XenAPIVMTestCase(test.TestCase):
'SubnetMask/type': 'multi_sz'
})
- def _test_spawn(self, image_id, kernel_id, ramdisk_id, check_injection = False):
+ def _test_spawn(self, image_id, kernel_id, ramdisk_id,
+ check_injection = False):
stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests)
values = {'name': 1,
'id': 1,