# Class e.c.t.t.TestCancellableCoiterator(unittest.TestCase):

Part of elisa.core.tests.test_cancellable_defer View In Hierarchy

these tests are similar to the `TestCancellabelDeferredIterator` but with the difference that they check the cancellable_coiterator.

Line # | Kind | Name | Docs
--- | --- | --- | ---
260 | Method | test_cancel | test whether the cancel call on the iterator deferred get propagated
306 | Method | test_exception | test whether the raised exceptions gets propagated and the iteration
353 | Method | test_iteration | test whether the iterator works under normal conditions

def test_cancel(self):
test whether the cancel call on the iterator deferred get propagated to the current deferred and that the correct failure gets fired

def test_exception(self):
test whether the raised exceptions gets propagated and the iteration stopped

def test_iteration(self):
test whether the iterator works under normal conditions