def METHOD_NAME(qtbot, completions_codeeditor, params):
    """Test that the editor is returning hints."""
    code_editor, _ = completions_codeeditor
    param, expected_output_text = params
    # Set text in editor
    code_editor.set_text(param)
    # Move cursor to end of line
    code_editor.moveCursor(QTextCursor.End)
    code_editor.calltip_widget.hide()
    # Test with brackets autocompletion enable/disable
    bracket_extension = code_editor.editor_extensions.get(
        CloseBracketsExtension)
    # Bracket autocompletion enabled
    with qtbot.waitSignal(code_editor.sig_signature_invoked,
                          timeout=30000) as blocker:
        qtbot.keyPress(code_editor, Qt.Key_ParenLeft, delay=1000)
        # This is needed to leave time for the calltip to appear
        # and make the tests succeed
        qtbot.wait(2000)
        args = blocker.args
        print('args:', [args])
        output_text = args[0]['signatures']['label']
        assert expected_output_text in output_text
        code_editor.calltip_widget.hide()
    # Bracket autocompletion disabled
    bracket_extension.enable = False
    with qtbot.waitSignal(code_editor.sig_signature_invoked,
                          timeout=30000) as blocker:
        qtbot.keyPress(code_editor, Qt.Key_ParenLeft, delay=1000)
        # This is needed to leave time for the calltip to appear
        # and make the tests succeed
        qtbot.wait(2000)
        args = blocker.args
        print('args:', [args])
        output_text = args[0]['signatures']['label']
        assert expected_output_text in output_text
        code_editor.calltip_widget.hide()
    # Set bracket autocomplete to default value
    bracket_extension.enable = True