72
72
self.assertChunksToLines(['foo\n', 'bar\n', '\n', 'baz\n', '\n', '\n'],
73
73
['foo\nbar\n\nbaz\n\n\n'])
76
self.assertChunksToLines(['foobarbaz'], ['foo', 'bar', 'baz'])
80
self.assertChunksToLines(['\n'], ['', '\n', ''])
83
self.assertChunksToLines(['\n', '\n', '\n'], ['\n\n\n'])
84
self.assertChunksToLines(['\n', '\n', '\n'], ['\n', '\n', '\n'],
75
87
def test_lines_to_lines(self):
76
88
self.assertChunksToLines(['foo\n', 'bar\r\n', 'ba\rz\n'],