              "Changelist filter isn't showing options contained inside a model field 'choices' option named group."
          )
  
  class SaveAsTests(TestCase):
      fixtures = ['admin-views-users.xml','admin-views-person.xml']
  
      def setUp(self):
          self.client.login(username='super', password='secret')
  
 
</s> remove         self.assertEqual(display_value, EMPTY_CHANGELIST_VALUE)
 </s> add         expected = u'<img src="%simg/admin/icon-unknown.gif" alt="None" />' % settings.ADMIN_MEDIA_PREFIX
        self.assertEqual(display_value, expected)
    def testChangeListNullBooleanDisplay(self):
        Post.objects.create(public=None)
        # This hard-codes the URl because it'll fail if it runs
        # against the 'admin2' custom admin (which doesn't have the
        # Post model).
        response = self.client.get("/test_admin/admin/admin_views/post/")
        self.failUnless('icon-unknown.gif' in response.content)
        print "Passed"

              "Changelist filter isn't showing options contained inside a model field 'choices' option named group."
          )
  
    def testChangeListNullBooleanDisplay(self):
        Post.objects.create(public=None)
        # This hard-codes the URl because it'll fail if it runs
        # against the 'admin2' custom admin (which doesn't have the
        # Post model).
        response = self.client.get("/test_admin/admin/admin_views/post/")
        self.failUnless('icon-unknown.gif' in response.content)
        print "Passed"

  class SaveAsTests(TestCase):
      fixtures = ['admin-views-users.xml','admin-views-person.xml']
  
      def setUp(self):
          self.client.login(username='super', password='secret')
  
keep keep add keep keep keep keep keep keep
 Ensure that NullBooleanField displays the appropriate icon for null values in admin changelists. Refs #13071.

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