'L{ProcessMonitor.connectionLost} will wait at least minRestartDelay s
and at most maxRestartDelay s'

def test_connectionLostMinMaxRestartDelay(self):

    self.pm.minRestartDelay = 2
    self.pm.maxRestartDelay = 3
    self.pm.startService()
    self.pm.addProcess('foo', ['foo'])
    self.assertEqual(self.pm.delay['foo'], self.pm.minRestartDelay)
    self.reactor.advance((self.pm.threshold - 1))
    self.pm.protocols['foo'].processEnded(Failure(ProcessDone(0)))
    self.assertEqual(self.pm.delay['foo'], self.pm.maxRestartDelay)
