MCPcopy
hub / github.com/django/django / test_list_display_for_value

Method test_list_display_for_value

tests/admin_utils/tests.py:288–295  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

286 self.assertEqual(display_value, render_password_as_hash(password))
287
288 def test_list_display_for_value(self):
289 display_value = display_for_value([1, 2, 3], self.empty_value)
290 self.assertEqual(display_value, "1, 2, 3")
291
292 display_value = display_for_value(
293 [1, 2, "buckle", "my", "shoe"], self.empty_value
294 )
295 self.assertEqual(display_value, "1, 2, buckle, my, shoe")
296
297 @override_settings(USE_THOUSAND_SEPARATOR=True)
298 def test_list_display_for_value_boolean(self):

Callers

nothing calls this directly

Calls 1

display_for_valueFunction · 0.90

Tested by

no test coverage detected