'L{ProcessMonitor.stopProcess} kills a process which fails to terminate
naturally within L{ProcessMonitor.killTime} seconds.'

def test_stopProcessForcedKill(self):

    self.pm.startService()
    self.pm.addProcess('foo', ['foo'])
    self.assertIn('foo', self.pm.protocols)
    self.reactor.advance(self.pm.threshold)
    proc = self.pm.protocols['foo'].transport
    proc._terminationDelay = (self.pm.killTime + 1)
    self.pm.stopProcess('foo')
    self.reactor.advance((self.pm.killTime - 1))
    self.assertEqual(0.0, self.pm.timeStarted['foo'])
    self.reactor.advance(1)
    self.assertEqual(self.reactor.seconds(), self.pm.timeStarted['foo'])
