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

Method test_funcdocstring

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

Source from the content-addressed store, hash-verified

171 self.assertIn(b'Project-Id-Version: PACKAGE VERSION', res.out)
172
173 def test_funcdocstring(self):
174 for doc in ('"""doc"""', "r'''doc'''", "R'doc'", 'u"doc"'):
175 with self.subTest(doc):
176 msgids = self.extract_docstrings_from_str(dedent('''\
177 def foo(bar):
178 %s
179 ''' % doc))
180 self.assertIn('doc', msgids)
181
182 def test_funcdocstring_bytes(self):
183 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