def METHOD_NAME(self):
    main = self.main
    func = main.workspace.main_instance.project.kb.functions["authenticate"]
    _ = main.workspace._get_or_create_view("disassembly", DisassemblyView)
    pseudocode_view = main.workspace._get_or_create_view("pseudocode", CodeView)
    # find the node for function
    for _, item in pseudocode_view.codegen.map_pos_to_node.items():
        if isinstance(item.obj, CFunctionCall) and item.obj.callee_func.name == "authenticate":
            func_node = item.obj
            break
    else:
        self.fail("The CFunction instance is not found.")
    # rename the function in the pseudocode view
    rnode = RenameNode(code_view=pseudocode_view, node=func_node)
    rnode._name_box.setText("")
    QTest.keyClicks(rnode._name_box, "authenticate_1337")
    QTest.mouseClick(rnode._ok_button, Qt.MouseButton.LeftButton)
    self.assertEqual(func.name, "authenticate_1337")