Ejemplo n.º 1
0
 def test_single_write(self):
     writer = ListWriter()
     writer.write_row('Line 1')
     self.assertEqual(['Line 1'], writer.list)
Ejemplo n.º 2
0
 def test_multiple_writes(self):
     writer = ListWriter()
     writer.write_row('Line 1')
     writer.write_row('Line 2')
     self.assertEqual(['Line 1', 'Line 2'], writer.list)