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

Method test_load_stack

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

Source from the content-addressed store, hash-verified

259 self.assertHasAttr(sv, 'stack')
260
261 def test_load_stack(self):
262 # Test the .load_stack() method against a fixed test stack.
263 # Check the test stack is assigned and the list contains the repr of them.
264 self.assertEqual(self.sv.stack, self.stack)
265 self.assertTrue('?.<module>(), line 1:' in self.sv.get(0))
266 self.assertEqual(self.sv.get(1), '?.<module>(), line 2: ')
267
268 def test_show_source(self):
269 # Test the .show_source() method against a fixed test stack.

Callers

nothing calls this directly

Calls 3

assertTrueMethod · 0.80
assertEqualMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected