

def test_split_lines(self):
    lines = list(split_lines([(Token.A, 'line1\nline2\nline3')]))
    self.assertEqual(lines, [[(Token.A, 'line1')], [(Token.A, 'line2')], [(Token.A, 'line3')]])

dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/tests/layout_tests/__init__.py SplitLinesTest.test_split_lines/original