def METHOD_NAME(
    client, setup_api_test_data, attribute, value
):
    """Test to change the generic_asset_id that should not be allowed.
    The generic_asset_id is excluded in the partial_sensor_schema"""
    auth_token = get_auth_token(client, "test_admin_user@seita.nl", "testtest")
    sensor = Sensor.query.filter(Sensor.name == "some temperature sensor").one_or_none()
    response = client.patch(
        url_for("SensorAPI:patch", id=sensor.id),
        headers={"content-type": "application/json", "Authorization": auth_token},
        json={
            attribute: value,
        },
    )
    print(response.json)
    assert response.status_code == 422
    assert response.json["status"] == "UNPROCESSABLE_ENTITY"
    assert response.json["message"]["json"][attribute] == ["Unknown field."]