def METHOD_NAME():
    dq = SubHavingQuery("foo")
    with pytest.raises(ValueError, match="spatial_unit"):
        _ = LabelledSpatialAggregate(
            locations=dq,
            labels=SubscriberHandsetCharacteristic(
                "2016-01-01", "2016-01-02", characteristic="hnd_type"
            ),
        )