Ticket #24835: 24835-test.diff

File 24835-test.diff, 574 bytes (added by Tim Graham, 9 years ago)
  • tests/annotations/tests.py

    diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py
    index 1230d5c..5928266 100644
    a b class NonAggregateAnnotationTestCase(TestCase):  
    325325            lambda a: (a['age'], a['age_count'])
    326326        )
    327327
     328    def test_annotate_exists(self):
     329        authors = Author.objects.annotate(c=Count('id')).filter(c__gt=1)
     330        self.assertFalse(authors.exists())
     331
    328332    def test_column_field_ordering(self):
    329333        """
    330334        Test that columns are aligned in the correct order for
Back to Top