def test_bug_duplicate_line_undo_stack(editor):
    editor.setPlainText('foo\nbar', '', 'utf-8')
    editor.textCursor().setPosition(0)
    editor.indent()
    editor.duplicate_line()
    editor.undo()
    assert editor.toPlainText() == '    foo\nbar'
    assert editor.textCursor().position() == 7
A generator returning n-sized lists
dataset/ETHPy150Open pyQode/pyqode.core/test/test_api/test_code_edit.py/test_bug_duplicate_line_undo_stack--crossover with--dataset/ETHPy150Open braiden/python-ant-downloader/antd/garmin.py/chunk