#NEWLINE# def calculate_values_to_forecast_exception_test( self ) : #NEWLINE# #INDENT# 'Test for correct handling of illegal TimeSeries instances.\n\n        @todo remove NotImplementedError Catch.' #NEWLINE# data = [ [ 1.5 , 152.0 ] , [ 2.5 , 172.8 ] , [ 3.5 , 195.07200000000003 ] , [ 4.5 , 218.30528000000004 ] ] #NEWLINE# ts = TimeSeries . from_twodim_list ( data ) #NEWLINE# ts . add_entry ( 3 , 1343 ) #NEWLINE# bfm = BaseForecastingMethod ( ) #NEWLINE# bfm . _calculate_values_to_forecast ( ts ) #NEWLINE# bfm . forecast_until ( 134 ) #NEWLINE# try : #NEWLINE# #INDENT# bfm . _calculate_values_to_forecast ( ts ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert False #NEWLINE# #UNINDENT# ts . sort_timeseries ( ) #NEWLINE# try : #NEWLINE# #INDENT# bfm . _calculate_values_to_forecast ( ts ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert False #NEWLINE# #UNINDENT# ts . normalize ( 'second' ) #NEWLINE# bfm . _calculate_values_to_forecast ( ts )