'If the deferred is successfully completed before the timeout, the
timeout is not still pending on the reactor.'

def test_timeout_cleaned_up_on_success(self):

    timeout(self.clock, self.deferred, self.timeout)
    self.deferred.callback('Success')
    self.assertEqual(self.clock.getDelayedCalls(), [])
