def METHOD_NAME(
    client, setup_api_test_data: dict[str, Sensor], use_auth
):
    """Test 1: Sensor with id 1 is not in the test_prosumer_user_2@seita.nl's account.
    The Supplier Account as can be seen in flexmeasures/api/v3_0/tests/conftest.py
    Test 2: There is no authentication int the headers"""
    sensor_id = 1
    if use_auth:
        headers = make_headers_for("test_prosumer_user_2@seita.nl", client)
        response = client.get(
            url_for("SensorAPI:fetch_one", id=sensor_id),
            headers=headers,
        )
        assert response.status_code == 403
        assert (
            response.json["message"]
            == "You cannot be authorized for this content or functionality."
        )
        assert response.json["status"] == "INVALID_SENDER"
    else:
        headers = make_headers_for(None, client)
        response = client.get(
            url_for("SensorAPI:fetch_one", id=sensor_id),
            headers=headers,
        )
        assert response.status_code == 401
        assert (
            response.json["message"]
            == "You could not be properly authenticated for this content or functionality."
        )
        assert response.json["status"] == "UNAUTHORIZED"