'Test that we can get a list of all delayed calls'

def test_getDelayedCalls(self):

    c = task.Clock()
    call = c.callLater(1, (lambda x: None))
    call2 = c.callLater(2, (lambda x: None))
    calls = c.getDelayedCalls()
    self.assertEqual(set([call, call2]), set(calls))
