Run a second pass on escaped html characters.
This commit is contained in:
@@ -145,6 +145,16 @@ def test_terminal_clean_ncols(terminal):
|
||||
assert text.decode('utf-8') == 'hell'
|
||||
|
||||
|
||||
@pytest.mark.parametrize('ascii', [True, False])
|
||||
def test_terminal_clean_unescape_html(terminal, ascii):
|
||||
|
||||
# HTML characters get decoded
|
||||
terminal.ascii = ascii
|
||||
text = terminal.clean('<')
|
||||
assert isinstance(text, six.binary_type)
|
||||
assert text.decode('ascii' if ascii else 'utf-8') == '<'
|
||||
|
||||
|
||||
@pytest.mark.parametrize('ascii', [True, False])
|
||||
def test_terminal_add_line(terminal, stdscr, ascii):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user