Skip to content

Commit

Permalink
Failing test case for twisted#9031.
Browse files Browse the repository at this point in the history
  • Loading branch information
markrwilliams committed Feb 12, 2017
1 parent e920939 commit 561d028
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/twisted/conch/test/test_recvline.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,27 @@ def testUpArrow(self):
b">>> done"])


def testDownArrowToPartialLineInHistory(self):
"""
Pressing down arrow to visit an entry that was added to the
history by pressing the up arrow instead of return does not
raise a L{TypeError}.
@see: U{http://twistedmatrix.com/trac/ticket/9031}
@return: A L{defer.Deferred} that fires when C{b"done"} is
echoed back.
"""

return self._trivialTest(
b"first line\n" + b"partial line" + up + down + b"\ndone",
[b">>> first line",
b"first line",
b">>> partial line",
b"partial line",
b">>> done"])


def testDownArrow(self):
return self._trivialTest(
b"first line\nsecond line\n" + up * 2 + down + b"\ndone",
Expand Down

0 comments on commit 561d028

Please sign in to comment.