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

Method test_moduledocstring

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

Source from the content-addressed store, hash-verified

217 self.assertFalse([msgid for msgid in msgids if 'doc' in msgid])
218
219 def test_moduledocstring(self):
220 for doc in ('"""doc"""', "r'''doc'''", "R'doc'", 'u"doc"'):
221 with self.subTest(doc):
222 msgids = self.extract_docstrings_from_str(dedent('''\
223 %s
224 ''' % doc))
225 self.assertIn('doc', msgids)
226
227 def test_moduledocstring_bytes(self):
228 msgids = self.extract_docstrings_from_str(dedent('''\

Callers

nothing calls this directly

Calls 4

dedentFunction · 0.90
assertInMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected