

def test_select_related_semantics(self):
    qs = Related.objects.language()
    self.assertCountEqual(qs._raw_select_related, [])
    qs = qs.select_related('normal')
    self.assertCountEqual(qs._raw_select_related, ['normal'])
    qs = qs.select_related('translated')
    if (django.VERSION >= (1, 7)):
        self.assertCountEqual(qs._raw_select_related, ['normal', 'translated'])
    else:
        self.assertCountEqual(qs._raw_select_related, ['translated'])
    qs = qs.select_related(None)
    self.assertCountEqual(self._raw_select_related, [])

dataset/ETHPy150Open KristianOellegaard/django-hvad/hvad/tests/related.py SelectRelatedTests.test_select_related_semantics/VarMisuse@125/170 `qs`->`self`