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

Method test_expect_setecho_toggle_exact

tests/test_unicode.py:61–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 self._expect_echo(p)
60
61 def test_expect_setecho_toggle_exact(self):
62 p = pexpect.spawnu('cat', timeout=5)
63 p.expect = p.expect_exact
64 try:
65 self._expect_echo_toggle_off(p)
66 except IOError:
67 if sys.platform.lower().startswith('sunos'):
68 if hasattr(unittest, 'SkipTest'):
69 raise unittest.SkipTest("Not supported on this platform.")
70 return 'skip'
71 raise
72 self._expect_echo_toggle_on(p)
73
74 def _expect_echo (self, p):
75 p.sendline('1234') # Should see this twice (once from tty echo and again from cat).

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected