(self)
| 835 | self.assertIn('The "with" statement', helptext) |
| 836 | |
| 837 | def test_fail_showtopic(self): |
| 838 | with captured_stdout() as showtopic_io: |
| 839 | helper = pydoc.Helper() |
| 840 | helper.showtopic('abd') |
| 841 | expected = "no documentation found for 'abd'" |
| 842 | self.assertEqual(expected, showtopic_io.getvalue().strip()) |
| 843 | |
| 844 | @unittest.mock.patch('pydoc.pager') |
| 845 | def test_fail_showtopic_output_redirect(self, pager_mock): |
nothing calls this directly
no test coverage detected