

def test_not_followed_by_default(self):
    with self.assertNumQueries(2):
        u = User.objects.select_related().get(username='test')
        self.assertEqual(u.userstat.posts, 150)

dataset/ETHPy150Open django/django/tests/select_related_onetoone/tests.py ReverseSelectRelatedTestCase.test_not_followed_by_default/original