'tests that the use of one iterator does not affect the behavior of another'

@execute_count(2)
def test_multiple_iterators_are_isolated(self):

    for q in (TestModel.objects(test_id=0), TestModel.objects((TestModel.test_id == 0))):
        q = q.order_by('attempt_id')
        expected_order = [0, 1, 2, 3]
        iter1 = iter(q)
        iter2 = iter(q)
        for attempt_id in expected_order:
            assert (next(iter1).attempt_id == attempt_id)
            assert (next(iter2).attempt_id == attempt_id)
