Ticket #25284: 25284-test.diff

File 25284-test.diff, 590 bytes (added by Tim Graham, 9 years ago)
  • tests/queries/tests.py

    diff --git a/tests/queries/tests.py b/tests/queries/tests.py
    index c041669..e1d6e3c 100644
    a b class Queries1Tests(BaseQuerysetTest):  
    104104        # So, 'U0."id"' is referenced twice.
    105105        self.assertTrue(str(qs4.query).lower().count('u0'), 2)
    106106
     107    def test_in(self):
     108        qs1 = Tag.objects.filter(pk=self.t1.pk)
     109        self.assertEqual(len(Annotation.objects.filter(tag__in=qs1)), 1)
     110
    107111    def test_ticket1050(self):
    108112        self.assertQuerysetEqual(
    109113            Item.objects.filter(tags__isnull=True),
Back to Top