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

Method test_user_exception

Lib/idlelib/idle_test/test_debugger.py:59–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.gui.interaction.assert_called_once_with(self.msg, self.frame)
58
59 def test_user_exception(self):
60 # Test that .user_exception() creates a string message for a frame.
61 exc_info = (type(ValueError), ValueError(), None)
62 self.gui.interaction = Mock()
63 self.idb.user_exception(self.frame, exc_info)
64 self.gui.interaction.assert_called_once_with(
65 self.msg, self.frame, exc_info)
66
67
68class FunctionTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

MockClass · 0.90
user_exceptionMethod · 0.45

Tested by

no test coverage detected