def test_iterate_eager(self):
    ar1 = EagerResult(uuid(), 42, states.SUCCESS)
    ar2 = EagerResult(uuid(), 42, states.SUCCESS)
    ts = self.app.GroupResult(uuid(), [ar1, ar2])
    it = ts.iterate()
    self.assertEqual(next(it), 42)
    self.assertEqual(next(it), 42)
def test_iterate_eager(self):
    ar1 = EagerResult(uuid(), 42, states.SUCCESS)
    ar2 = EagerResult(uuid(), 42, states.SUCCESS)
    ts = self.app.GroupResult(uuid(), [ar1, ar2])
    it = ts.iterate()
    self.assertEqual(next(it), 42)
    self.assertEqual(next(it), 42)