'Test that cancelling a DelayedCall which has already been cancelled
raises the appropriate exception.'

def test_cancelCancelledDelayedCall(self):

    call = reactor.callLater(0, (lambda : None))
    call.cancel()
    self.assertRaises(error.AlreadyCancelled, call.cancel)
