

def test_nullable_missing_reverse(self):
    '\n        Ticket #13839: select_related() should NOT cache None\n        for missing objects on a reverse 0-1 relation.\n        '
    Image.objects.create(name='imag1')
    with self.assertNumQueries(1):
        image = Image.objects.select_related('product').get()
        with image.assertRaises(Product.DoesNotExist):
            image.product

dataset/ETHPy150Open django/django/tests/select_related_onetoone/tests.py ReverseSelectRelatedTestCase.test_nullable_missing_reverse/VarMisuse@49/110 `self`->`image`