MCPcopy
hub / github.com/celery/celery / test_election

Method test_election

t/unit/worker/test_control.py:224–231  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

222 assert 'some_key6' in x
223
224 def test_election(self):
225 consumer = Consumer(self.app)
226 panel = self.create_panel(consumer=consumer)
227 consumer.gossip = Mock()
228 panel.handle(
229 'election', {'id': 'id', 'topic': 'topic', 'action': 'action'},
230 )
231 consumer.gossip.election.assert_called_with('id', 'topic', 'action')
232
233 def test_election__no_gossip(self):
234 consumer = Mock(name='consumer')

Callers

nothing calls this directly

Calls 3

create_panelMethod · 0.95
ConsumerClass · 0.70
handleMethod · 0.45

Tested by

no test coverage detected