def initialization_precision_test(self):
        """Test the parameter range durign the initialization."""
        for precision in xrange(-7, 1, 1):
            BaseOptimizationMethod(BaseErrorMeasure, precision=precision)

        for precision in [-1020, -324, -11, 1, 42, 123, 2341]:
            try:
                BaseOptimizationMethod(BaseErrorMeasure, precision=precision)
            except __HOLE__:
                pass
            else:
                #print "precision: %s" % precision    # pragma: no cover
                assert False                         # pragma: no cover
dataset/ETHPy150Open T-002/pycast/pycast/tests/baseoptimizationtest.py/BaseOptimizationMethodTest.initialization_precision_test