def test_insert_lines_when_empty(self):
        text = "1\n2\n3\n"
        expect = ['1\n', '2\n', '3\n']
        self.buffer.insert(Position(1,1), text)
        assert self.buffer.lines == expect
        assert "updatedBuffer" in self.signals
        assert self.inserted("startPosition") == Position(1,1)
dataset/ETHPy150Open elmar-hinz/Python.Vii/tests/Buffer_Test.py/Buffer_Test.test_insert_lines_when_empty/original