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

Method test_wrap

Lib/test/test_pyrepl/test_windows_console.py:114–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 con.restore()
113
114 def test_wrap(self):
115 code = "12+34"
116 events = code_to_events(code)
117 _, con = self.handle_events_narrow(events)
118 con.out.write.assert_any_call(b"1")
119 con.out.write.assert_any_call(b"2")
120 con.out.write.assert_any_call(b"+")
121 con.out.write.assert_any_call(b"3")
122 con.out.write.assert_any_call(b"\\")
123 con.out.write.assert_any_call(b"\n")
124 con.out.write.assert_any_call(b"4")
125 con.restore()
126
127 def test_resize_wider(self):
128 code = "1234567890"

Callers

nothing calls this directly

Calls 4

handle_events_narrowMethod · 0.95
code_to_eventsFunction · 0.85
assert_any_callMethod · 0.80
restoreMethod · 0.45

Tested by

no test coverage detected