docstr: Verify that the "py-list" command works
docstr_tok: ["Verify","that","the","``","py-list","''","command","works"]
code: def test_basic_command(self):
      'Verify that the "py-list" command works'
      bt = self.get_stack_trace(
          script=SAMPLE_SCRIPT, cmds_after_breakpoint=["py-list"]
      )
  
      self.assertListing(
          "   5    \n"
          "   6    def bar(a, b, c):\n"
          "   7        baz(a, b, c)\n"
          "   8    \n"
          "   9    def baz(*args):\n"
          " >10        id(42)\n"
          "  11    \n"
          "  12    foo(1, 2, 3)\n",
          bt,
      )
  
imports: import re
  import unittest
  from test.support import python_is_optimized
  from .util import run_gdb, setup_module, DebuggerTests, SAMPLE_SCRIPT
label_desc: Use image node_id 2 for calling the PyListTests obj's underlying member method code with example usage: obj.test_basic_command() without return types