Fix missing test coverage

This commit is contained in:
Anthony Sottile
2020-03-06 16:58:29 -08:00
parent 1e14929aec
commit b11575b998

View File

@@ -122,3 +122,10 @@ def test_press_enter_mid_line(run, tmpdir):
h.await_cursor_position(x=0, y=2)
h.press('Up')
h.await_cursor_position(x=0, y=1)
def test_press_string_sequence(run):
with run() as h, and_exit(h):
h.press('hello world\x1bOH')
h.await_text('hello world')
h.await_cursor_position(x=0, y=1)