def METHOD_NAME(admin, user):
    user_data, user_etag = get_user(admin, "user")
    assert user.get("/api/v1/identity").status_code == 200
    assert (
        user.put(
            "/api/v1/identity",
            data={"current_password": "user", "new_password": "password"},
            headers={"If-match": user_etag},
        ).status_code
        == 200
    )
    assert user.get("/api/v1/identity").status_code == 401
    user_data, user_etag = get_user(admin, "user")
    assert (
        admin.put(
            "/api/v1/users/%s" % user_data["id"],
            data={"password": "user"},
            headers={"If-match": user_etag},
        ).status_code
        == 200
    )
    assert user.get("/api/v1/identity").status_code == 200