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

Method test_file_display

Lib/idlelib/idle_test/test_help_about.py:169–178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

167 textview.view_text = cls.orig_view
168
169 def test_file_display(self):
170 for handler in (self.dialog.idle_credits,
171 self.dialog.idle_readme,
172 self.dialog.idle_news):
173 self.error.message = ''
174 self.view.called = False
175 with self.subTest(handler=handler):
176 handler()
177 self.assertEqual(self.error.message, '')
178 self.assertEqual(self.view.called, True)
179
180
181if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

handlerFunction · 0.85
subTestMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected