'L{process.Process.signalProcess} raises L{error.ProcessExitedAlready}
if the process has exited.'

def test_killExited(self):

    self.mockos.child = False
    cmd = '/mock/ouch'
    p = TrivialProcessProtocol(None)
    proc = reactor.spawnProcess(p, cmd, ['ouch'], env=None, usePTY=False)
    self.assertRaises(error.ProcessExitedAlready, proc.signalProcess, 'KILL')
