def METHOD_NAME():
    """
    Test that error is raised if reference_locations is not an object of type `BaseLocation`.
    """
    not_an_instance_of_base_location = Mock()
    with pytest.raises(ValueError):
        Displacement(
            "2016-01-01",
            "2016-01-02",
            reference_location=not_an_instance_of_base_location,
            statistic="avg",
        )