#NEWLINE# def test_granularity( self ) : #NEWLINE# #INDENT# from_time = self . from_time #NEWLINE# assert ( dtw ( from_time , from_time , 'second' ) == '0 seconds' ) #NEWLINE# assert ( dtw ( from_time , self , 'day' ) == '0 days' ) #NEWLINE# assert ( dtw ( from_time , from_time , 'century' ) == '0 centuries' )