Ticket #25284: 25284-test.2.diff

File 25284-test.2.diff, 570 bytes (added by no, 9 years ago)

Updated test

  • tests/queries/tests.py

    diff --git a/tests/queries/tests.py b/tests/queries/tests.py
    index c041669..02aab19 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.all()
     109        self.assertEqual(len(Annotation.objects.filter(tag=qs1)), 1)
     110
    107111    def test_ticket1050(self):
    108112        self.assertQuerysetEqual(
    109113            Item.objects.filter(tags__isnull=True),
Back to Top