MCPcopy
hub / github.com/celery/celery / test_read_pid

Method test_read_pid

t/unit/utils/test_platforms.py:565–570  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

563 assert not p.is_locked()
564
565 def test_read_pid(self):
566 with conftest.open() as s:
567 s.write('1816\n')
568 s.seek(0)
569 p = Pidfile('/var/pid')
570 assert p.read_pid() == 1816
571
572 def test_read_pid_partially_written(self):
573 with conftest.open() as s:

Callers

nothing calls this directly

Calls 4

read_pidMethod · 0.95
PidfileClass · 0.90
openMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected