summaryrefslogtreecommitdiff
path: root/tests/choices/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/choices/tests.py')
-rw-r--r--tests/choices/tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/choices/tests.py b/tests/choices/tests.py
index 329c936c7f..88b8bf7fe2 100644
--- a/tests/choices/tests.py
+++ b/tests/choices/tests.py
@@ -20,3 +20,6 @@ class ChoicesTests(TestCase):
a.gender = 'U'
self.assertEqual(a.get_gender_display(), 'U')
+
+ # _get_FIELD_display() coerces lazy strings.
+ self.assertIsInstance(a.get_gender_display(), str)