'Test that L{LoopingCall} can be reset.'

def test_reset(self):

    ran = []
    def foo():
        ran.append(None)
    c = task.Clock()
    lc = TestableLoopingCall(c, foo)
    lc.start(2, now=False)
    c.advance(1)
    lc.reset()
    c.advance(1)
    self.assertEqual(ran, [])
    c.advance(1)
    self.assertEqual(ran, [None])
