(self, kill)
| 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') |