MCPcopy
hub / github.com/django/django / assertGettext

Method assertGettext

tests/i18n/tests.py:1860–1867  ·  view source on GitHub ↗
(self, msgid, msgstr)

Source from the content-addressed store, hash-verified

1858 self.addCleanup(deactivate)
1859
1860 def assertGettext(self, msgid, msgstr):
1861 result = gettext(msgid)
1862 self.assertIn(
1863 msgstr,
1864 result,
1865 "The string '%s' isn't in the translation of '%s'; the actual result is "
1866 "'%s'." % (msgstr, msgid, result),
1867 )
1868
1869
1870class AppResolutionOrderI18NTests(ResolutionOrderI18NTests):

Calls 1

gettextFunction · 0.90

Tested by

no test coverage detected