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

Method test_classdocstring

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

Source from the content-addressed store, hash-verified

194 self.assertFalse([msgid for msgid in msgids if 'doc' in msgid])
195
196 def test_classdocstring(self):
197 for doc in ('"""doc"""', "r'''doc'''", "R'doc'", 'u"doc"'):
198 with self.subTest(doc):
199 msgids = self.extract_docstrings_from_str(dedent('''\
200 class C:
201 %s
202 ''' % doc))
203 self.assertIn('doc', msgids)
204
205 def test_classdocstring_bytes(self):
206 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