def test_write_convert_read(self): out_stream = OutputStream() out_stream.write_line('xyz') out_stream.write('1') inp_stream = out_stream.to_input_stream() self.assertEqual(inp_stream.get_input(), 'xyz{}1'.format(os.linesep))
def run(self, input_stream, env): output = OutputStream() output.write_line(' '.join(self._args_lst[1:])) return RunnableCommandResult(output, env, 0)