summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/tests/event.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/event.py b/bitbake/lib/bb/tests/event.py
index 1ddcb411de..f11fda5064 100644
--- a/bitbake/lib/bb/tests/event.py
+++ b/bitbake/lib/bb/tests/event.py
@@ -388,6 +388,14 @@ class EventHandlingTest(unittest.TestCase):
388 self.assertEqual(self._test_ui1.event.send.call_args_list, 388 self.assertEqual(self._test_ui1.event.send.call_args_list,
389 expected) 389 expected)
390 390
391 def test_worker_fire(self):
392 """ Test the triggering of bb.event.worker_fire callback """
393 bb.event.worker_fire = Mock()
394 event = bb.event.Event()
395 bb.event.fire(event, None)
396 expected = [call(event, None)]
397 self.assertEqual(bb.event.worker_fire.call_args_list, expected)
398
391 def test_print_ui_queue(self): 399 def test_print_ui_queue(self):
392 """ Test print_ui_queue method """ 400 """ Test print_ui_queue method """
393 event1 = bb.event.OperationStarted() 401 event1 = bb.event.OperationStarted()