MCPcopy
hub / github.com/celery/celery / test_remove

Method test_remove

t/unit/utils/test_platforms.py:604–608  ·  view source on GitHub ↗
(self, unlink)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

removeMethod · 0.95
PidfileClass · 0.90

Tested by

no test coverage detected