def test_getDelayedCalls(self):
        """
        Test that we can get a list of all delayed calls
        """
        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))

        Test that we can get a list of all delayed calls
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_task.py