def METHOD_NAME(
    client_request,
    api_user_active,
    mock_check_verify_code_code_not_found,
):
    with client_request.session_transaction() as session:
        session["user_details"] = {
            "email_address": api_user_active["email_address"],
            "id": api_user_active["id"],
        }
    page = client_request.post(
        "main.verify",
        _data={"two_factor_code": "12345"},
        _expected_status=200,
    )
    assert len(page.select(".error-message")) == 1
    assert normalize_spaces(page.select_one(".error-message").text) == ("Code not found")