Merge pull request #3642 from basepi/develop

Add None checks for eventfired in event.py
This commit is contained in:
Thomas S Hatch 2013-02-07 20:58:24 -08:00
commit 7e248e76f6

View File

@ -38,6 +38,7 @@ class EventModuleTest(integration.ModuleCase):
self.assertTrue(ret)
eventfired = events.get(block=True, timeout=10)
self.assertIsNotNone(eventfired)
self.assertIn(
'event.fire_master: just test it!!!!', eventfired['data']
)
@ -69,6 +70,7 @@ class EventModuleTest(integration.ModuleCase):
self.assertTrue(ret)
eventfired = events.get(block=True, timeout=10)
self.assertIsNotNone(eventfired)
self.assertIn('event.fire: just test it!!!!', eventfired)
ret = self.run_function(
@ -98,6 +100,7 @@ class EventModuleTest(integration.ModuleCase):
self.assertTrue(ret)
eventfired = events.get(block=True, timeout=10)
self.assertIsNotNone(eventfired)
self.assertIn('event.fire: just test it!!!!', eventfired)
ret = self.run_function(