

@mock.patch('lifter.query.QuerySet.iterator')
def test_queries_combine_to_a_single_one(self, mocked_iterator):
    queryset = self.manager.filter((TestModel.a == 1)).filter((TestModel.order == 1))
    queryset.count()
    queryset.assertEqual(mocked_iterator.call_count, 1)

dataset/ETHPy150Open EliotBerriot/lifter/tests/test_explicit_query_engine.py TestQueries.test_queries_combine_to_a_single_one/VarMisuse@54/77 `self`->`queryset`