Verify that the "py-list" command works
(self)
| 31 | self.assertEndsWith(actual, expected) |
| 32 | |
| 33 | def test_basic_command(self): |
| 34 | 'Verify that the "py-list" command works' |
| 35 | bt = self.get_stack_trace(script=SAMPLE_SCRIPT, |
| 36 | cmds_after_breakpoint=['py-list']) |
| 37 | |
| 38 | self.assertListing(' 5 \n' |
| 39 | ' 6 def bar(a, b, c):\n' |
| 40 | ' 7 baz(a, b, c)\n' |
| 41 | ' 8 \n' |
| 42 | ' 9 def baz(*args):\n' |
| 43 | ' >10 id(42)\n' |
| 44 | ' 11 \n' |
| 45 | ' 12 foo(1, 2, 3)\n', |
| 46 | bt) |
| 47 | |
| 48 | def test_one_abs_arg(self): |
| 49 | 'Verify the "py-list" command with one absolute argument' |
nothing calls this directly
no test coverage detected