#NEWLINE# def initialization_test( self ) : #NEWLINE# #INDENT# 'Test the initialization of the ExponentialSmoothing method.' #NEWLINE# ExponentialSmoothing ( 0.2 , 0 ) #NEWLINE# for alpha in [ ( - 42.23 ) , ( - 0.1 ) , 0.0 , 1.0 , 1.1 , 3.1 , 4.2 ] : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ExponentialSmoothing ( self ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert False