def test_write_adds_new_line_strips_extra_whitespace(self): stream = io.StringIO() output = Output(stream) output.write('\n\tfoo,bar\t\n') assert stream.getvalue() == 'foo,bar\n'
def test_write_adds_new_line_char(self): stream = io.StringIO() output = Output(stream) output.write('foo,bar') assert stream.getvalue() == 'foo,bar\n'