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

Method test_election

t/unit/tasks/test_canvas.py:264–270  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

262 assert not x.immutable
263
264 def test_election(self):
265 x = self.add.s(2, 2)
266 x.freeze('foo')
267 x.type.app.control = Mock()
268 r = x.election()
269 x.type.app.control.election.assert_called()
270 assert r.id == 'foo'
271
272 def test_AsyncResult_when_not_registered(self):
273 s = signature('xxx.not.registered', app=self.app)

Callers

nothing calls this directly

Calls 3

sMethod · 0.45
freezeMethod · 0.45
electionMethod · 0.45

Tested by

no test coverage detected