'When more time than the defined interval passes between when
L{LoopingCall} schedules itself to run again and when it actually
runs again, it should schedule the next call for the next interval
which is still in the future.'

def test_reactorTimeSkips(self):

    times = []
    clock = task.Clock()
    def aCallback():
        times.append(clock.seconds())
    call = task.LoopingCall(aCallback)
    call.clock = clock
    call.start(0.5)
    self.assertEqual(times, [0])
    clock.advance(2)
    self.assertEqual(times, [0, 2])
    clock.advance(1)
    self.assertEqual(times, [0, 2, 3])
    clock.advance(0)
    self.assertEqual(times, [0, 2, 3])
