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

Method test_showtopic

Lib/test/test_pydoc/test_pydoc.py:830–835  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

828 run_pydoc_pager(sys, 'sys', 'Help on built-in module sys:')
829
830 def test_showtopic(self):
831 with captured_stdout() as showtopic_io:
832 helper = pydoc.Helper()
833 helper.showtopic('with')
834 helptext = showtopic_io.getvalue()
835 self.assertIn('The "with" statement', helptext)
836
837 def test_fail_showtopic(self):
838 with captured_stdout() as showtopic_io:

Callers

nothing calls this directly

Calls 4

showtopicMethod · 0.95
captured_stdoutFunction · 0.90
assertInMethod · 0.80
getvalueMethod · 0.45

Tested by

no test coverage detected