# exercise,
child.send('_' * send_bytes)
+ child.sendline()
# verify, all input is received
child.expect_exact('_' * send_bytes)
child.expect_exact('\a')
# cleanup,
- child.sendline() # stop input line
child.sendeof() # exit cat(1)
child.sendeof() # exit bash(1)
child.expect(pexpect.EOF)
# exercise,
child.send('_' * send_bytes)
+ child.sendline() # also rings bel
# verify, all input is *not* received
with self.assertRaises(pexpect.TIMEOUT):
# and BEL is found immediately after,
child.expect_exact('\a')
- # (and not any more than a single BEL)
- with self.assertRaises(pexpect.TIMEOUT):
- child.expect_exact('\a')
-
# we must now backspace to send carriage return
child.sendcontrol('h')
child.sendline()
# exercise,
child.send('_' * send_bytes)
+ child.sendline()
# verify, all input is received on output (echo)
child.expect_exact('_' * send_bytes)
child.expect_exact('\a')
# verify cat(1) also received all input,
- child.sendline()
child.expect_exact('_' * send_bytes)
# cleanup,