Esempio n. 1
0
 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'
Esempio n. 2
0
 def test_write_adds_new_line_char(self):
     stream = io.StringIO()
     output = Output(stream)
     output.write('foo,bar')
     assert stream.getvalue() == 'foo,bar\n'