'L{ProcessMonitor.connectionLost} removes the corresponding
ProcessProtocol instance from the L{ProcessMonitor.protocols} list.'

def test_connectionLostProtocolDeletion(self):

    self.pm.startService()
    self.pm.addProcess('foo', ['foo'])
    self.assertIn('foo', self.pm.protocols)
    self.pm.protocols['foo'].transport.signalProcess('KILL')
    self.reactor.advance(self.pm.protocols['foo'].transport._terminationDelay)
    self.assertNotIn('foo', self.pm.protocols)
