blob: cfe395fc29a8ecc570800de011a6b7d5fdd7ed18 [file] [log] [blame]
import pexpect
p = pexpect.spawn(["login"])
p.expect("login:")
p.sendline("wrong")
p.expect("Password:")
p.sendline("wrong")
p.expect("Login incorrect")