MCPcopy Index your code
hub / github.com/python/cpython / test_plural_context_forms

Method test_plural_context_forms

Lib/test/test_gettext.py:398–408  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

396 '%d file deleted', '%d files deleted')
397
398 def test_plural_context_forms(self):
399 ngettext = partial(self.npgettext, 'With context')
400 gettext = partial(self.pgettext, 'With context')
401 self._test_plural_forms(
402 ngettext, gettext,
403 'There is %s file', 'There are %s files',
404 'Hay %s fichero (context)', 'Hay %s ficheros (context)')
405 self._test_plural_forms(
406 ngettext, gettext,
407 '%d file deleted', '%d files deleted',
408 '%d file deleted', '%d files deleted')
409
410 def test_plural_wrong_context_forms(self):
411 self._test_plural_forms(

Callers

nothing calls this directly

Calls 2

_test_plural_formsMethod · 0.95
partialClass · 0.90

Tested by

no test coverage detected