def test_source_iterator(self): config = self.get_standard_config() pa = ProcessorApp(config) pa._setup_source_and_destination() g = pa.source_iterator() assert next(g) == ((1, ), {}) assert next(g) == ((2, ), {}) assert next(g) is None assert next(g) == ((3, ), {})
def test_source_iterator(self): config = self.get_standard_config() pa = ProcessorApp(config) pa._setup_source_and_destination() g = pa.source_iterator() assert g.next() == ((1,), {}) assert g.next() == ((2,), {}) assert g.next() is None assert g.next() == ((3,), {})
def test_source_iterator(self): config = self.get_standard_config() pa = ProcessorApp(config) pa._setup_source_and_destination() g = pa.source_iterator() eq_(g.next(), ((1,), {})) eq_(g.next(), ((2,), {})) eq_(g.next(), None) eq_(g.next(), ((3,), {}))