def METHOD_NAME(qtbot, editor_close_quotes):
    """Test insert surronding quotes to selected text."""
    editor = editor_close_quotes
    editor.set_text('some text')
    # select some
    cursor = editor.textCursor()
    cursor.movePosition(QTextCursor.Right, QTextCursor.KeepAnchor, 4)
    editor.setTextCursor(cursor)
    qtbot.keyClicks(editor, '"')
    assert editor.toPlainText() == '"some" text'
    qtbot.keyClicks(editor, '"')
    assert editor.toPlainText() == '""some"" text'
    qtbot.keyClicks(editor, '"')
    assert editor.toPlainText() == '"""some""" text'