(self, unlink)
| 618 | |
| 619 | @patch('os.unlink') |
| 620 | def test_remove_EACCES(self, unlink): |
| 621 | exc = OSError() |
| 622 | exc.errno = errno.EACCES |
| 623 | unlink.side_effect = exc |
| 624 | p = Pidfile('/var/pid') |
| 625 | p.remove() |
| 626 | unlink.assert_called_with(p.path) |
| 627 | |
| 628 | @patch('os.unlink') |
| 629 | def test_remove_OSError(self, unlink): |