cdad4bf6aa
Add a simple test case to check the basic usage. Call 'login' and try wrong user/password, expecting the 'Login incorrect' message. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
9 lines
154 B
Python
9 lines
154 B
Python
import pexpect
|
|
|
|
p = pexpect.spawn(["login"])
|
|
p.expect("login:")
|
|
p.sendline("wrong")
|
|
p.expect("Password:")
|
|
p.sendline("wrong")
|
|
p.expect("Login incorrect")
|