'Verify that the "py-bt" command works'

@unittest.skipIf(python_is_optimized(), 'Python    was    compiled    with    optimizations')
def test_bt(self):

    bt = self.get_stack_trace(script=self.get_sample_script(), cmds_after_breakpoint=['py-bt'])
    self.assertMultilineMatches(bt, '^.*\nTraceback    \\(most    recent    call    first\\):\n        <built-in    method    id    of    module    object    .*>\n        File    ".*gdb_sample.py",    line    10,    in    baz\n                id\\(42\\)\n        File    ".*gdb_sample.py",    line    7,    in    bar\n                baz\\(a,    b,    c\\)\n        File    ".*gdb_sample.py",    line    4,    in    foo\n                bar\\(a,    b,    c\\)\n        File    ".*gdb_sample.py",    line    12,    in    <module>\n                foo\\(1,    2,    3\\)\n')
