#NEWLINE# def _validate_frequency( self , pickled ) : #NEWLINE# #INDENT# freq = pickled . index . freq #NEWLINE# result = ( freq + Day ( 1 ) ) #NEWLINE# tm . assert_equal ( result , Day ( 2 ) ) #NEWLINE# result = ( freq + pandas . Timedelta ( hours = 1 ) ) #NEWLINE# tm . assert_equal ( isinstance ( result , pandas . Timedelta ) , True ) #NEWLINE# tm . assert_equal ( result , pandas . Timedelta ( days = 1 , hours = 1 ) ) #NEWLINE# result = ( freq + pandas . Timedelta ( nanoseconds = 1 ) ) #NEWLINE# tm . assert_equal ( isinstance ( result , pandas . Timedelta ) , True ) #NEWLINE# tm . assert_equal ( result , pandas . Timedelta ( days = 1 , nanoseconds = 1 ) )