env, which displays PS1=..., should not mess up finding the prompt.
(self)
| 42 | assert 'SLEEP' in res.upper(), res |
| 43 | |
| 44 | def test_bash_env(self): |
| 45 | """env, which displays PS1=..., should not mess up finding the prompt. |
| 46 | """ |
| 47 | bash = replwrap.bash() |
| 48 | res = bash.run_command("export PS1") |
| 49 | res = bash.run_command("env") |
| 50 | self.assertIn('PS1', res) |
| 51 | res = bash.run_command("echo $HOME") |
| 52 | assert res.startswith('/'), res |
| 53 | |
| 54 | def test_long_running_multiline(self): |
| 55 | " ensure the default timeout is used for multi-line commands. " |
nothing calls this directly
no test coverage detected