1 2 3 4 5 6 7 8 9 10 11 12 13 14
""" check ascii table: http://ascii-table.com/ansi-escape-sequences.php """ def test_clear(cli): cli.sendline("clear") cli.expect("\\[2J") # clear screen def test_exirt(cli): cli.sendline("EXIT") cli.expect("Goodbye!")