MCPcopy
hub / github.com/django/django / test_empty_value

Method test_empty_value

tests/i18n/tests.py:409–414  ·  view source on GitHub ↗

Empty value must stay empty after being translated (#23196).

(self)

Source from the content-addressed store, hash-verified

407 )
408
409 def test_empty_value(self):
410 """Empty value must stay empty after being translated (#23196)."""
411 with translation.override("de"):
412 self.assertEqual("", gettext(""))
413 s = mark_safe("")
414 self.assertEqual(s, gettext(s))
415
416 @override_settings(LOCALE_PATHS=extended_locale_paths)
417 def test_safe_status(self):

Callers

nothing calls this directly

Calls 2

gettextFunction · 0.90
mark_safeFunction · 0.90

Tested by

no test coverage detected