(self, unlink)
| 602 | |
| 603 | @patch('os.unlink') |
| 604 | def test_remove(self, unlink): |
| 605 | unlink.return_value = True |
| 606 | p = Pidfile('/var/pid') |
| 607 | p.remove() |
| 608 | unlink.assert_called_with(p.path) |
| 609 | |
| 610 | @patch('os.unlink') |
| 611 | def test_remove_ENOENT(self, unlink): |