MCPcopy Create free account
hub / github.com/celery/celery / test_start_node

Method test_start_node

t/unit/apps/test_multi.py:512–521  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

510 )
511
512 def test_start_node(self):
513 self.cluster._start_node = Mock(name='_start_node')
514 node = self.cluster[0]
515 assert (self.cluster.start_node(node) is
516 self.cluster._start_node.return_value)
517 self.cluster.on_node_start.assert_called_with(node)
518 self.cluster._start_node.assert_called_with(node)
519 self.cluster.on_node_status.assert_called_with(
520 node, self.cluster._start_node(),
521 )
522
523 def test__start_node(self):
524 node = self.cluster[0]

Callers

nothing calls this directly

Calls 2

start_nodeMethod · 0.80
_start_nodeMethod · 0.80

Tested by

no test coverage detected