

def initialization_test(self):
    'Test the BaseErrorMeasure initialization.'
    BaseErrorMeasure()
    for percentage in [(- 1.2), (- 0.1), 100.1, 123.9]:
        try:
            BaseErrorMeasure(self)
        except ValueError:
            pass
        else:
            assert False
    for percentage in [0.0, 12.3, 53.4, 100.0]:
        try:
            BaseErrorMeasure(percentage)
        except ValueError:
            assert False

dataset/ETHPy150Open T-002/pycast/pycast/tests/errormeasuretest.py BaseErrorMeasureTest.initialization_test/VarMisuse@43/66 `percentage`->`self`