MCPcopy Create free account
hub / github.com/celery/celery / test_remove

Method test_remove

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

Source from the content-addressed store, hash-verified

752
753 @patch('os.unlink')
754 def test_remove(self, unlink):
755 unlink.return_value = True
756 p = Pidfile('/var/pid')
757 p.remove()
758 unlink.assert_called_with(p.path)
759
760 @patch('os.unlink')
761 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