Ticket #8683: DateQuerySet-assertion-test.diff
File DateQuerySet-assertion-test.diff, 812 bytes (added by , 16 years ago) |
---|
-
tests/regressiontests/queries/models.py
901 901 >>> qs = Item.objects.dates('created', 'month') 902 902 >>> _ = pickle.loads(pickle.dumps(qs)) 903 903 904 Bug #8683 -- raise proper error when a DateQuerySet gets passed a wrong type of field 905 >>> Item.objects.dates('name', 'month') 906 Traceback (most recent call last): 907 ... 908 AssertionError: 'name' isn't a DateField. 909 904 910 Bug #8597: regression tests for case-insensitive comparisons 905 911 >>> _ = Item.objects.create(name="a_b", created=datetime.datetime.now(), creator=a2, note=n1) 906 912 >>> _ = Item.objects.create(name="x%y", created=datetime.datetime.now(), creator=a2, note=n1)