def METHOD_NAME():
    """
    Test that MobilityClassification raises an error if the input locations
    do not all have the same spatial unit
    """
    with pytest.raises(InvalidSpatialUnitError, match="same spatial unit"):
        mc = MobilityClassification(
            locations=[
                daily_location(
                    "2016-01-01",
                    spatial_unit=make_spatial_unit("admin", level=2),
                ),
                daily_location(
                    "2016-01-01",
                    spatial_unit=make_spatial_unit("admin", level=3),
                ),
            ]
        )