1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #23919 -- Removed unneeded force_str calls

This commit is contained in:
Claude Paroz
2017-01-11 23:17:25 +01:00
parent bf1c957027
commit dc8834cad4
44 changed files with 100 additions and 167 deletions

View File

@@ -217,13 +217,9 @@ class UtilsTests(SimpleTestCase):
("History", None)
)
self.assertEqual(
label_for_field("__unicode__", Article),
"article"
)
self.assertEqual(
label_for_field("__str__", Article),
str("article")
"article"
)
with self.assertRaises(AttributeError):