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

Method test_pydoc

Lib/test/test_enum.py:5078–5088  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5076 YELLOW = 3
5077
5078 def test_pydoc(self):
5079 # indirectly test __objclass__
5080 if StrEnum.__doc__ is None:
5081 expected_text = expected_help_output_without_docs % __name__
5082 else:
5083 expected_text = expected_help_output_with_docs % __name__
5084 output = StringIO()
5085 helper = pydoc.Helper(output=output)
5086 helper(self.Color)
5087 result = output.getvalue().strip()
5088 self.assertEqual(result, expected_text, result)
5089
5090 def test_inspect_getmembers(self):
5091 values = dict((

Callers

nothing calls this directly

Calls 5

getvalueMethod · 0.95
StringIOClass · 0.90
helperFunction · 0.70
stripMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected