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

Method test_bash

tests/test_replwrap.py:26–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 os.putenv('PS2', self.save_ps2)
25
26 def test_bash(self):
27 bash = replwrap.bash()
28 res = bash.run_command("alias xyzzy=true; alias")
29 assert 'alias' in res, res
30
31 try:
32 bash.run_command('')
33 except ValueError:
34 pass
35 else:
36 assert False, "Didn't raise ValueError for empty input"
37
38 def test_pager_as_cat(self):
39 " PAGER is set to cat, to prevent timeout in ``man sleep``. "

Callers

nothing calls this directly

Calls 1

run_commandMethod · 0.80

Tested by

no test coverage detected