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

Method test_control_character

Lib/test/test_pyrepl/test_pyrepl.py:819–824  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

817 self.assert_screen_equal(reader, "1+1", clean=True)
818
819 def test_control_character(self):
820 events = code_to_events("c\x1d\n")
821 reader = self.prepare_reader(events)
822 output = multiline_input(reader)
823 self.assertEqual(output, "c\x1d")
824 self.assert_screen_equal(reader, "c\x1d", clean=True)
825
826 def test_history_search_backward(self):
827 # Test <page up> history search backward with "imp" input

Callers

nothing calls this directly

Calls 5

prepare_readerMethod · 0.95
code_to_eventsFunction · 0.85
multiline_inputFunction · 0.85
assert_screen_equalMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected