def test_nullable_missing_reverse(self):
        Image.objects.create(name="imag1")

        with self.assertNumQueries(1):
            image = Image.objects.select_related('product').get()
            with self.assertRaises(Product.DoesNotExist):
                image.product
Ticket #13839: select_related() should NOT cache None
dataset/ETHPy150Open django/django/tests/select_related_onetoone/tests.py/ReverseSelectRelatedTestCase.test_nullable_missing_reverse