File: test_self_implemented_command.py

package info (click to toggle)
iredis 1.15.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,244 kB
  • sloc: python: 7,196; sh: 16; makefile: 14
file content (14 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (3)
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!")