summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorNaveed Massjouni <naveedm9@gmail.com>2011-06-01 10:17:00 -0400
committerNaveed Massjouni <naveedm9@gmail.com>2011-06-01 10:17:00 -0400
commit9fc8e71f1b201adc0a5e49ac3a94e22bf47596fb (patch)
tree4b2af0f8fdd2bf03aacace471ebaf1e4a5e051b3 /nova/tests
parent46ddecc177830ea0ccef82e84d72c48261450b40 (diff)
pep8 fixes
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_notifier.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/nova/tests/test_notifier.py b/nova/tests/test_notifier.py
index 523f38f24..64b799a2c 100644
--- a/nova/tests/test_notifier.py
+++ b/nova/tests/test_notifier.py
@@ -122,12 +122,13 @@ class NotifierTestCase(test.TestCase):
self.stubs.Set(nova.flags.FLAGS, 'publish_errors', True)
LOG = log.getLogger('nova')
LOG.setup_from_flags()
-
msgs = []
+
def mock_cast(context, topic, data):
msgs.append(data)
- self.stubs.Set(nova.rpc, 'cast', mock_cast)
- LOG.error('foo');
+
+ self.stubs.Set(nova.rpc, 'cast', mock_cast)
+ LOG.error('foo')
self.assertEqual(1, len(msgs))
msg = msgs[0]
self.assertEqual(msg['event_type'], 'error_notification')