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

Method test_plural_forms

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

Source from the content-addressed store, hash-verified

386 self.assertEqual(x, tplural)
387
388 def test_plural_forms(self):
389 self._test_plural_forms(
390 self.ngettext, self.gettext,
391 'There is %s file', 'There are %s files',
392 'Hay %s fichero', 'Hay %s ficheros')
393 self._test_plural_forms(
394 self.ngettext, self.gettext,
395 '%d file deleted', '%d files deleted',
396 '%d file deleted', '%d files deleted')
397
398 def test_plural_context_forms(self):
399 ngettext = partial(self.npgettext, 'With context')

Callers

nothing calls this directly

Calls 1

_test_plural_formsMethod · 0.95

Tested by

no test coverage detected