def METHOD_NAME(obs_key, expected_msg, facade_snake_oil, storage):
    ensemble = storage.create_experiment().create_ensemble(
        name="empty", ensemble_size=facade_snake_oil.get_ensemble_size()
    )
    with pytest.raises(
        ResponseError,
        match=expected_msg,
    ):
        MeasuredData(facade_snake_oil, ensemble, [obs_key])