Ticket #28047: 28047-test.diff

File 28047-test.diff, 523 bytes (added by Tim Graham, 3 years ago)
  • tests/one_to_one/tests.py

    diff --git a/tests/one_to_one/tests.py b/tests/one_to_one/tests.py
    index 2fb1185..2161b11 100644
    a b class OneToOneTests(TestCase): 
    272272            Target.objects.exclude(second_pointer=None),
    273273            []
    274274        )
     275        self.assertQuerysetEqual(
     276            Pointer.objects.filter(other__in=Target.objects.all()),
     277            []
     278        )
    275279
    276280    def test_o2o_primary_key_delete(self):
    277281        t = Target.objects.create(name='name')
Back to Top