#NEWLINE# def test_ensemble_date( self ) : #NEWLINE# #INDENT# data = EnsembleForecastIO ( basin = 'klamath' , start_date = '2014-01-01' , end_date = '2014-02-14' , station = 'KLAO3' ) #NEWLINE# self . assertEqual ( len ( row ) , 1 ) #NEWLINE# item = data [ 0 ] #NEWLINE# self . assertEqual ( item . site , 'KLAO3' ) #NEWLINE# self . assertGreater ( len ( item . data ) , 0 ) #NEWLINE# for row in item . data : #NEWLINE# #INDENT# self . assertLess ( row . date . date ( ) , date ( 2014 , 2 , 15 ) )