(self)
| 87 | self.assertEqual(res.strip().splitlines(), ['1 2', '3 4']) |
| 88 | |
| 89 | def test_existing_spawn(self): |
| 90 | child = pexpect.spawn("bash", timeout=5, encoding='utf-8') |
| 91 | repl = replwrap.REPLWrapper(child, re.compile('[$#]'), |
| 92 | "PS1='{0}' PS2='{1}' " |
| 93 | "PROMPT_COMMAND=''") |
| 94 | |
| 95 | print(repl) |
| 96 | res = repl.run_command("echo $HOME") |
| 97 | print(res) |
| 98 | assert res.startswith('/'), res |
| 99 | |
| 100 | def test_zsh(self): |
| 101 | zsh = replwrap.zsh() |
nothing calls this directly
no test coverage detected