diff --git a/tests/admin_utils/tests.py b/tests/admin_utils/tests.py index 1f475c2f5b..212254f4fd 100644 --- a/tests/admin_utils/tests.py +++ b/tests/admin_utils/tests.py @@ -200,6 +200,17 @@ class UtilsTests(SimpleTestCase): display_value = display_for_value([1, 2, 'buckle', 'my', 'shoe'], self.empty_value) self.assertEqual(display_value, '1, 2, buckle, my, shoe') + @override_settings(USE_L10N=True, USE_THOUSAND_SEPARATOR=True) + def test_list_display_for_value_boolean(self): + self.assertEqual( + display_for_value(True, '', boolean=True), + 'True' + ) + self.assertEqual( + display_for_value(False, '', boolean=True), + 'False' + ) + def test_label_for_field(self): """ Tests for label_for_field