MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_pydoc

Method test_pydoc

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

Source from the content-addressed store, hash-verified

5043 YELLOW = 3
5044
5045 def test_pydoc(self):
5046 # indirectly test __objclass__
5047 if StrEnum.__doc__ is None:
5048 expected_text = expected_help_output_without_docs % __name__
5049 else:
5050 expected_text = expected_help_output_with_docs % __name__
5051 output = StringIO()
5052 helper = pydoc.Helper(output=output)
5053 helper(self.Color)
5054 result = output.getvalue().strip()
5055 self.assertEqual(result, expected_text, result)
5056
5057 def test_inspect_getmembers(self):
5058 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