Ticket #17882: 17882-quick-n-dirty-patch.diff
File 17882-quick-n-dirty-patch.diff, 1.2 KB (added by , 13 years ago) |
---|
-
tests/regressiontests/admin_filters/tests.py
9 9 from django.contrib.auth.admin import UserAdmin 10 10 from django.contrib.auth.models import User 11 11 from django.core.exceptions import ImproperlyConfigured 12 from django.db import connection 12 13 from django.test import TestCase, RequestFactory 13 14 from django.test.utils import override_settings 14 15 from django.utils.encoding import force_unicode … … 223 224 224 225 @override_settings(USE_TZ=True) 225 226 def test_datefieldlistfilter_with_time_zone_support(self): 227 # Close connection so it gets reopened in UTC 228 connection.close() 226 229 # Regression for #17830 227 230 self.test_datefieldlistfilter() 228 231 … … 631 634 choices = list(filterspec.choices(changelist)) 632 635 self.assertEqual(choices[2]['display'], u'the 1990\'s') 633 636 self.assertEqual(choices[2]['selected'], True) 634 self.assertEqual(choices[2]['query_string'], '?decade__isnull=the+90s') 635 No newline at end of file 637 self.assertEqual(choices[2]['query_string'], '?decade__isnull=the+90s')