(self)
| 83 | self.assertEqual(self.sysmod.ps2, 'custom2> ') |
| 84 | |
| 85 | def test_console_stderr(self): |
| 86 | self.infunc.side_effect = ["'antioch'", "", EOFError('Finished')] |
| 87 | self.console.interact() |
| 88 | for call in list(self.stdout.method_calls): |
| 89 | if 'antioch' in ''.join(call[1]): |
| 90 | break |
| 91 | else: |
| 92 | raise AssertionError("no console stdout") |
| 93 | |
| 94 | def test_syntax_error(self): |
| 95 | self.infunc.side_effect = ["def f():", |