'Test that calls can be delayed.'

def testCallLaterDelayed(self):

    events = []
    c = task.Clock()
    call = c.callLater(1, (lambda a, b: events.append((a, b))), 1, b=2)
    call.delay(1)
    self.assertEqual(call.getTime(), 2)
    c.advance(1.5)
    self.assertEqual(events, [])
    c.advance(1.0)
    self.assertEqual(events, [(1, 2)])
