def optimize_value_error_test(self):
        """Test the optimize call."""
        bom = BaseOptimizationMethod(BaseErrorMeasure, precision=-3)
        bm  = BaseMethod()

        bom.optimize(TimeSeries(), [bm])

        try:
            bom.optimize(TimeSeries(), [])
        except __HOLE__:
            pass
        else:
            assert False    # pragma: no cover
dataset/ETHPy150Open T-002/pycast/pycast/tests/baseoptimizationtest.py/BaseOptimizationMethodTest.optimize_value_error_test