MCPcopy
hub / github.com/django/django / test_ngettext_lazy_bool

Method test_ngettext_lazy_bool

tests/i18n/tests.py:385–387  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

383 complex_context_deferred.format(name="Jim")
384
385 def test_ngettext_lazy_bool(self):
386 self.assertTrue(ngettext_lazy("%d good result", "%d good results"))
387 self.assertFalse(ngettext_lazy("", ""))
388
389 def test_ngettext_lazy_pickle(self):
390 s1 = ngettext_lazy("%d good result", "%d good results")

Callers

nothing calls this directly

Calls 1

ngettext_lazyFunction · 0.90

Tested by

no test coverage detected