Update tests to follow PEP 8 coding style

This commit is contained in:
Jack Wilsdon 2015-09-11 18:39:12 +01:00
parent 8b7af7fe23
commit 46e5f9d4c8

View file

@ -115,12 +115,12 @@ class HookTest(_common.TestCase, TestHelper):
for index, path in enumerate(temporary_paths):
self._add_hook('test_event_{0}'.format(index),
'echo > "%PATH%"'.format(path),
substitute_args = { 'path': '%PATH%' })
substitute_args={'path': '%PATH%'})
self.load_plugins('hook')
for index, path in enumerate(temporary_paths):
plugins.send('test_event_{0}'.format(index), path = path)
for index, path in enumerate(temporary_paths):
plugins.send('test_event_{0}'.format(index), path=path)
for path in temporary_paths:
self.assertTrue(os.path.isfile(path))