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

Method test_send__error

t/unit/apps/test_multi.py:378–383  ·  view source on GitHub ↗
(self, kill)

Source from the content-addressed store, hash-verified

376
377 @patch('os.kill')
378 def test_send__error(self, kill):
379 kill.side_effect = OSError()
380 kill.side_effect.errno = errno.ENOENT
381 with pytest.raises(OSError):
382 self.node.send(9)
383 kill.assert_called_with(self.node.pid, 9)
384
385 def test_alive(self):
386 self.node.send = Mock(name='send')

Callers

nothing calls this directly

Calls 2

raisesMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected