def initialization_errormeasure_test(self):
        """Test optimization methods error measure initialization."""
        BaseOptimizationMethod(BaseErrorMeasure, -1)

        try:
            BaseOptimizationMethod(None, -1)
        except TypeError:
            pass
        else:
            assert False    # pragma: no cover

        try:
            BaseOptimizationMethod(BaseOptimizationMethodTest, -1)
        except __HOLE__:
            pass
        else:
            assert False    # pragma: no cover
dataset/ETHPy150Open T-002/pycast/pycast/tests/baseoptimizationtest.py/BaseOptimizationMethodTest.initialization_errormeasure_test