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

Method test_msgid

Lib/test/test_tools/test_i18n.py:239–242  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

237 self.assertFalse([msgid for msgid in msgids if 'doc' in msgid])
238
239 def test_msgid(self):
240 msgids = self.extract_docstrings_from_str(
241 '''_("""doc""" r'str' u"ing")''')
242 self.assertIn('docstring', msgids)
243
244 def test_msgid_bytes(self):
245 msgids = self.extract_docstrings_from_str('_(b"""doc""")')

Callers

nothing calls this directly

Calls 2

assertInMethod · 0.80

Tested by

no test coverage detected