

def test_basic(self):
    with self.assertNumQueries(1):
        u = User.objects.select_related('userprofile').get(username='test')
        u.assertEqual(u.userprofile.state, 'KS')

dataset/ETHPy150Open django/django/tests/select_related_onetoone/tests.py ReverseSelectRelatedTestCase.test_basic/VarMisuse@38/50 `self`->`u`