Esempio n. 1
0
 def test_register_with_event_loop(self):
     worker = self.worker
     hub = Mock(name='hub')
     worker.blueprint = Mock(name='blueprint')
     worker.register_with_event_loop(hub)
     worker.blueprint.send_all.assert_called_with(
         worker, 'register_with_event_loop', args=(hub,),
         description='hub.register',
     )
Esempio n. 2
0
 def test_register_with_event_loop(self):
     worker = self.worker
     hub = Mock(name='hub')
     worker.blueprint = Mock(name='blueprint')
     worker.register_with_event_loop(hub)
     worker.blueprint.send_all.assert_called_with(
         worker, 'register_with_event_loop', args=(hub,),
         description='hub.register',
     )