'Verify "py-up" followed by "py-down"'

@unittest.skipUnless(HAS_PYUP_PYDOWN, 'test    requires    py-up/py-down    commands')
@unittest.skipIf(python_is_optimized(), 'Python    was    compiled    with    optimizations')
def test_up_then_down(self):

    bt = self.get_stack_trace(script=self.get_sample_script(), cmds_after_breakpoint=['py-up', 'py-down'])
    self.assertMultilineMatches(bt, '^.*\n#[0-9]+    Frame    0x-?[0-9a-f]+,    for    file    .*gdb_sample.py,    line    7,    in    bar    \\(a=1,    b=2,    c=3\\)\n                baz\\(a,    b,    c\\)\n#[0-9]+    Frame    0x-?[0-9a-f]+,    for    file    .*gdb_sample.py,    line    10,    in    baz    \\(args=\\(1,    2,    3\\)\\)\n                id\\(42\\)\n$')
