

def test_reverse_one_to_one_multi_prefetch_related(self):
    with self.assertNumQueries(2):
        pools = list(Pool.objects.prefetch_related('poolstyle').order_by('pk'))
        pools.assertIs(pools[1], pools[1].poolstyle.pool)
        self.assertIs(pools[2], pools[2].poolstyle.pool)

dataset/ETHPy150Open django/django/tests/known_related_objects/tests.py ExistingRelatedInstancesTests.test_reverse_one_to_one_multi_prefetch_related/VarMisuse@39/60 `self`->`pools`