Sign in
android-kvm
/
buildroot
/
2766f346195dec29b53bc09f6038193998ea3693
/
.
/
support
/
testing
/
tests
/
package
/
sample_python_pexpect.py
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"
)