'L{ProcessMonitor.connectionLost} cancels a scheduled process killer and
deletes the DelayedCall from the L{ProcessMonitor.murder} list.'

def test_connectionLostMurderCancel(self):

    self.pm.addProcess('foo', ['foo'])
    self.pm.startService()
    self.reactor.advance(1)
    self.pm.stopProcess('foo')
    self.assertIn('foo', self.pm.murder)
    delayedCall = self.pm.murder['foo']
    self.assertTrue(delayedCall.active())
    self.reactor.advance(self.pm.protocols['foo'].transport._terminationDelay)
    self.assertFalse(delayedCall.active())
    self.assertNotIn('foo', self.pm.murder)
