diff options
Diffstat (limited to 'tests/admin_utils/tests.py')
| -rw-r--r-- | tests/admin_utils/tests.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/admin_utils/tests.py b/tests/admin_utils/tests.py index 069433fd7d..6e054a8537 100644 --- a/tests/admin_utils/tests.py +++ b/tests/admin_utils/tests.py @@ -5,7 +5,6 @@ from decimal import Decimal from django import forms from django.conf import settings -from django.contrib import admin from django.contrib.admin import helpers from django.contrib.admin.utils import ( NestedObjects, display_for_field, flatten, flatten_fieldsets, @@ -13,7 +12,6 @@ from django.contrib.admin.utils import ( ) from django.db import DEFAULT_DB_ALIAS, models from django.test import SimpleTestCase, TestCase, override_settings -from django.utils import six from django.utils.formats import localize from django.utils.safestring import mark_safe @@ -303,31 +301,6 @@ class UtilsTests(SimpleTestCase): ('awesome guest', None), ) - def test_logentry_unicode(self): - """ - Regression test for #15661 - """ - log_entry = admin.models.LogEntry() - - log_entry.action_flag = admin.models.ADDITION - self.assertTrue( - six.text_type(log_entry).startswith('Added ') - ) - - log_entry.action_flag = admin.models.CHANGE - self.assertTrue( - six.text_type(log_entry).startswith('Changed ') - ) - - log_entry.action_flag = admin.models.DELETION - self.assertTrue( - six.text_type(log_entry).startswith('Deleted ') - ) - - # Make sure custom action_flags works - log_entry.action_flag = 4 - self.assertEqual(six.text_type(log_entry), 'LogEntry Object') - def test_safestring_in_field_label(self): # safestring should not be escaped class MyForm(forms.Form): |
