(self)
| 285 | |
| 286 | class TestReadInput( unittest.TestCase ): |
| 287 | def test__multiline_record(self): |
| 288 | cont = controller.PythonStreamingController() |
| 289 | inputio = StringIO.StringIO() |
| 290 | inputio.write('12\n') |
| 291 | inputio.write('34\n') |
| 292 | inputio.write('5|_\n') |
| 293 | inputio.seek(0) |
| 294 | |
| 295 | cont.input_stream = inputio |
| 296 | cont.output_stream = sys.stdout |
| 297 | out = cont.get_next_input() |
| 298 | |
| 299 | self.assertEquals('12\n34\n5', out) |
| 300 | |
| 301 | def test__complexmultiline_record(self): |
| 302 | cont = controller.PythonStreamingController() |
nothing calls this directly
no test coverage detected