def METHOD_NAME(qtbot, editor_close_brackets):
    """Test insert surronding brackets to multiple lines selected text."""
    editor = editor_close_brackets
    text = ("some text\n"
            "\n"
            "some text")
    editor.set_text(text)
    # select until second some
    cursor = editor.textCursor()
    cursor.movePosition(QTextCursor.Right, QTextCursor.KeepAnchor, 4)
    cursor.movePosition(QTextCursor.Down, QTextCursor.KeepAnchor, 2)
    editor.setTextCursor(cursor)
    qtbot.keyClicks(editor, ")")
    assert editor.toPlainText() == ("(some text\n"
                                    "\n"
                                    "some) text")
    qtbot.keyClicks(editor, "{")
    assert editor.toPlainText() == ("({some text\n"
                                    "\n"
                                    "some}) text")
    qtbot.keyClicks(editor, "]")
    assert editor.toPlainText() == ("({[some text\n"
                                    "\n"
                                    "some]}) text")