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