(self, unlink)
| 609 | |
| 610 | @patch('os.unlink') |
| 611 | def test_remove_ENOENT(self, unlink): |
| 612 | exc = OSError() |
| 613 | exc.errno = errno.ENOENT |
| 614 | unlink.side_effect = exc |
| 615 | p = Pidfile('/var/pid') |
| 616 | p.remove() |
| 617 | unlink.assert_called_with(p.path) |
| 618 | |
| 619 | @patch('os.unlink') |
| 620 | def test_remove_EACCES(self, unlink): |