Ticket #21001: 21001.diff

File 21001.diff, 589 bytes (added by Tim Graham, 11 years ago)
  • tests/queries/tests.py

    diff --git a/tests/queries/tests.py b/tests/queries/tests.py
    index e58f05c..ebc8b52 100644
    a b class EmptyStringsAsNullTest(TestCase):  
    24882488            [self.nc.pk], attrgetter('pk')
    24892489        )
    24902490
     2491    def test_21001(self):
     2492        foo = NamedCategory.objects.create(name='foo')
     2493        self.assertQuerysetEqual(
     2494            NamedCategory.objects.exclude(name=''),
     2495            [foo.pk], attrgetter('pk')
     2496        )
     2497
    24912498class ProxyQueryCleanupTest(TestCase):
    24922499    def test_evaluated_proxy_count(self):
    24932500        """
Back to Top