          self.assertEqual(list(queryset), [self.bio_book])
  
          # Make sure the correct choice is selected
          filterspec = changelist.get_filters(request)[0][3]
          self.assertEqual(force_unicode(filterspec.title), u'is_best_seller')
          choice = select_by(filterspec.choices(changelist), "display", "No")
          self.assertEqual(choice['selected'], True)
          self.assertEqual(choice['query_string'], '?is_best_seller__exact=0')
  
          request = self.request_factory.get('/', {'is_best_seller__exact': 1})
 
</s> remove         self.assertEqual(force_unicode(filterspec.title), u'is_best_seller')
 </s> add         self.assertEqual(force_unicode(filterspec.title), u'is best seller') </s> remove         self.assertEqual(force_unicode(filterspec.title), u'is_best_seller')
 </s> add         self.assertEqual(force_unicode(filterspec.title), u'is best seller') </s> remove         self.assertEqual(force_unicode(filterspec.title), u'date_registered')
 </s> add         self.assertEqual(force_unicode(filterspec.title), u'date registered') </s> remove         self.assertEqual(force_unicode(filterspec.title), u'date_registered')
 </s> add         self.assertEqual(force_unicode(filterspec.title), u'date registered') </s> remove         self.assertEqual(force_unicode(filterspec.title), u'date_registered')
 </s> add         self.assertEqual(force_unicode(filterspec.title), u'date registered')
        self.assertEqual(force_unicode(filterspec.title), u'is best seller')
          self.assertEqual(list(queryset), [self.bio_book])
  
          # Make sure the correct choice is selected
          filterspec = changelist.get_filters(request)[0][3]
        self.assertEqual(force_unicode(filterspec.title), u'is best seller')
          choice = select_by(filterspec.choices(changelist), "display", "No")
          self.assertEqual(choice['selected'], True)
          self.assertEqual(choice['query_string'], '?is_best_seller__exact=0')
  
          request = self.request_factory.get('/', {'is_best_seller__exact': 1})
keep keep keep keep replace keep keep keep keep keep
 Fixed #15971 -- Fixed regression introduced in r16144 that prevented the use of the field's verbose_name attribute. Thanks to mk and Julien.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16171 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/regressiontests/admin_filters/tests.py