'L{UnixApplicationRunner.setupEnvironment} writes the process\'s PID to
the file specified by the C{pidfile} parameter.'

def test_nonDaemonPIDFile(self):

    pidfile = self.mktemp()
    self.runner.setupEnvironment(None, '.', True, None, pidfile)
    with open(pidfile, 'rb') as f:
        pid = int(f.read())
    self.assertEqual(pid, self.pid)
