def test_missing_reverse(self):
        with self.assertNumQueries(1):
            user = User.objects.select_related('userprofile').get(username='bob')
            with self.assertRaises(UserProfile.DoesNotExist):
                user.userprofile
Ticket #13839: select_related() should NOT cache None
dataset/ETHPy150Open django/django/tests/select_related_onetoone/tests.py/ReverseSelectRelatedTestCase.test_missing_reverse