def initialization_test(self):
        """Test the initialization of the ExponentialSmoothing method."""
        ExponentialSmoothing(0.2, 0)

        for alpha in [-42.23, -0.1, 0.0, 1.0, 1.1, 3.1, 4.2]:
            try:
                ExponentialSmoothing(alpha)
            except __HOLE__:
                pass
            else:
                assert False    # pragma: no cover
dataset/ETHPy150Open T-002/pycast/pycast/tests/methodtest.py/ExponentialSmoothingTest.initialization_test