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

Method test_bash_env

tests/test_replwrap.py:44–52  ·  view source on GitHub ↗

env, which displays PS1=..., should not mess up finding the prompt.

(self)

Source from the content-addressed store, hash-verified

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. "

Callers

nothing calls this directly

Calls 1

run_commandMethod · 0.80

Tested by

no test coverage detected