MCPcopy Create free account
hub / github.com/pexpect/pexpect / _expect_echo_toggle_on

Method _expect_echo_toggle_on

tests/test_unicode.py:91–99  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

89 assert index == 2, index
90
91 def _expect_echo_toggle_on(self, p):
92 p.setecho(1) # Turn on tty echo
93 time.sleep(0.2) # there is no waitecho() !
94 p.sendline('7890') # Should see this twice.
95 index = p.expect ([pexpect.EOF, 'abcdé', 'wxyz', '7890'])
96 assert index == 3, index
97 index = p.expect ([pexpect.EOF, 'abcdé', 'wxyz', '7890'])
98 assert index == 3, index
99 p.sendeof()
100
101 def test_log_unicode(self):
102 msg = "abcΩ÷"

Calls 4

setechoMethod · 0.80
expectMethod · 0.80
sendlineMethod · 0.45
sendeofMethod · 0.45

Tested by

no test coverage detected