| 5062 | self.assertIn(b'special', output) |
| 5063 | |
| 5064 | def test_convvar_completion(self): |
| 5065 | script = textwrap.dedent(""" |
| 5066 | import pdb; pdb.Pdb().set_trace() |
| 5067 | """) |
| 5068 | |
| 5069 | # Complete: $_frame |
| 5070 | input = b"$_fram\t\n" |
| 5071 | |
| 5072 | # Complete: $_frame.f_lineno + 100 |
| 5073 | input += b"$_frame.f_line\t + 100\n" |
| 5074 | |
| 5075 | # Continue |
| 5076 | input += b"c\n" |
| 5077 | |
| 5078 | output = run_pty(script, input) |
| 5079 | |
| 5080 | self.assertIn(b'<frame at 0x', output) |
| 5081 | self.assertIn(b'102', output) |
| 5082 | |
| 5083 | def test_local_namespace(self): |
| 5084 | script = textwrap.dedent(""" |