(self)
| 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). |
nothing calls this directly
no test coverage detected