Adding test cases

This commit is contained in:
Michael Lazar
2019-02-02 19:02:38 -05:00
parent 0b1bb2d574
commit a727110e40

View File

@@ -701,6 +701,14 @@ def test_terminal_strip_instructions(terminal):
text = '<!--{0} instructions {0}--><!-- An HTML comment -->'.format(TOKEN)
assert terminal.strip_instructions(text) == '<!-- An HTML comment -->'
# Whitespace at the start of the first line should be preserved
text = ' code\n block\n'
assert terminal.strip_instructions(text) == ' code\n block'
# But blank lines should be stripped
text = '\n \n code\n block\n'
assert terminal.strip_instructions(text) == ' code\n block'
def test_terminal_get_link_pages(terminal):