

def confidence_interval_test(self):
    bem = BaseErrorMeasure()
    bem._errorValues = [10, (- 5), 3, (- 4), None, 0, 2, (- 3)]
    self.assertRaises(ValueError, bem.confidence_interval, (- 0.5))
    self.assertRaises(ValueError, bem.confidence_interval, 2)
    self.assertEquals(bem.confidence_interval(0.5), ((- 3.0), 2.0))
    self.assertEquals(bem.confidence_interval(0.1), (0.0, 0.0))

dataset/ETHPy150Open T-002/pycast/pycast/tests/errormeasuretest.py BaseErrorMeasureTest.confidence_interval_test/original