'L{ProcessMonitor.connectionLost} doubles the restart delay each time
the process dies too quickly.'

def test_connectionLostBackoffDelayDoubles(self):

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