'When cancelling an unfired L{defer.DeferredList}, cancel every
L{defer.Deferred} in the list.'

def test_cancelDeferredList(self):

    deferredOne = defer.Deferred()
    deferredTwo = defer.Deferred()
    deferredList = defer.DeferredList([deferredOne, deferredTwo])
    deferredList.cancel()
    self.failureResultOf(deferredOne, defer.CancelledError)
    self.failureResultOf(deferredTwo, defer.CancelledError)
