'L{Runner.killIfRequested} when C{kill} is true and given a C{pidFile}
containing a non-integer value exits with L{ExitStatus.EX_DATAERR}.'

def test_killRequestedWithPIDFileNotAnInt(self):

    pidFile = PIDFile(DummyFilePath('**    totally    not    a    number,    dude    **'))
    runner = Runner(reactor=MemoryReactor(), kill=True, pidFile=pidFile)
    runner.killIfRequested()
    self.assertEqual(self.exit.status, ExitStatus.EX_DATAERR)
    self.assertEqual(self.exit.message, 'Invalid    PID    file.')
