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

Method test_calc_screen_backspace

Lib/test/test_pyrepl/test_reader.py:95–103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 # fmt: on
94
95 def test_calc_screen_backspace(self):
96 events = itertools.chain(
97 code_to_events("aaa"),
98 [
99 Event(evt="key", data="backspace", raw=bytearray(b"\x7f")),
100 ],
101 )
102 reader, _ = handle_all_events(events)
103 self.assert_screen_equal(reader, "aa")
104
105 def test_calc_screen_wrap_removes_after_backspace(self):
106 events = itertools.chain(

Callers

nothing calls this directly

Calls 5

EventClass · 0.90
code_to_eventsFunction · 0.85
handle_all_eventsFunction · 0.85
chainMethod · 0.80
assert_screen_equalMethod · 0.80

Tested by

no test coverage detected