def test_readWithPID(self):
        """
        L{PIDFile.read} returns the PID from the given file path.
        """
        pid = 1337

        pidFile = PIDFile(DummyFilePath(PIDFile._format(pid=pid)))

        self.assertEqual(pid, pidFile.read())

        L{PIDFile.read} returns the PID from the given file path.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/application/runner/test/test_pidfile.py