'L{Runner.killIfRequested} when C{kill} is true and given a C{pidFile}
performs a targeted killing of the appropriate process.'

def test_killRequestedWithPIDFile(self):

    pidFile = PIDFile(DummyFilePath(self.pidFileContent))
    runner = Runner(reactor=MemoryReactor(), kill=True, pidFile=pidFile)
    runner.killIfRequested()
    self.assertEqual(self.kill.calls, [(self.pid, SIGTERM)])
    self.assertEqual(self.exit.status, ExitStatus.EX_OK)
    self.assertIdentical(self.exit.message, None)
