Method
test_create
(self, get_event_loop, set_event_loop)
Source from the content-addressed store, hash-verified
| 30 | @patch('celery.worker.components.set_event_loop') |
| 31 | @patch('celery.worker.components.get_event_loop') |
| 32 | def test_create(self, get_event_loop, set_event_loop): |
| 33 | self.hub._patch_thread_primitives = Mock(name='ptp') |
| 34 | assert self.hub.create(self.w) is self.hub |
| 35 | self.hub._patch_thread_primitives.assert_called_with(self.w) |
| 36 | |
| 37 | def test_start(self): |
| 38 | self.hub.start(self.w) |
Callers
nothing calls this directly
Tested by
no test coverage detected