MCPcopy Index your code
hub / github.com/python/cpython / test_builtin_completion

Method test_builtin_completion

Lib/test/test_pdb.py:5048–5062  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5046 self.assertIn(b'$_frame', output)
5047
5048 def test_builtin_completion(self):
5049 script = textwrap.dedent("""
5050 value = "speci"
5051 import pdb; pdb.Pdb().set_trace()
5052 """)
5053
5054 # Complete: print(value + 'al')
5055 input = b"pri\tval\t + 'al')\n"
5056
5057 # Continue
5058 input += b"c\n"
5059
5060 output = run_pty(script, input)
5061
5062 self.assertIn(b'special', output)
5063
5064 def test_convvar_completion(self):
5065 script = textwrap.dedent("""

Callers

nothing calls this directly

Calls 3

run_ptyFunction · 0.90
assertInMethod · 0.80
dedentMethod · 0.45

Tested by

no test coverage detected