(self)
| 221 | |
| 222 | |
| 223 | def test_file_with_missing_final_nl(self): |
| 224 | input = io.StringIO("print test\nprint test2") |
| 225 | output = io.StringIO() |
| 226 | cmd = self.simplecmd(stdin=input, stdout=output) |
| 227 | cmd.use_rawinput = False |
| 228 | cmd.cmdloop() |
| 229 | self.assertMultiLineEqual(output.getvalue(), |
| 230 | ("(Cmd) test\n" |
| 231 | "(Cmd) test2\n" |
| 232 | "(Cmd) ")) |
| 233 | |
| 234 | |
| 235 | def test_input_reset_at_EOF(self): |
nothing calls this directly
no test coverage detected