def METHOD_NAME(client, example_user, use_correct_token):
    login_res = client.post(
        "api/v1/auth/login",
        json={"email": example_user.email, "password": "my_password"},
    )
    token = ""
    if use_correct_token:
        token = login_res.json["access_token"]
    client.post(
        "api/v1/auth/resetPassword",
        headers={"Authorization": "Bearer {0}".format(token)},
        json={
            "password": "newPassword",
        },
    )
    login_res = client.post(
        "api/v1/auth/login",
        json={"email": example_user.email, "password": "newPassword"},
    )
    assert (login_res.status_code == 200) == use_correct_token