#NEWLINE# def test_compare_lastmod_download( self ) : #NEWLINE# #INDENT# '\n        Confirms compare time works for downloads.\n        ' #NEWLINE# time = datetime . datetime . now ( ) #NEWLINE# future_time = ( time + datetime . timedelta ( 0 , 3 ) ) #NEWLINE# src_file = FileStat ( src = '' , dest = '' , compare_key = 'comparator_test.py' , size = 10 , last_update = dest_file , src_type = 's3' , dest_type = 'local' , operation_name = 'download' ) #NEWLINE# dest_file = FileStat ( src = '' , dest = '' , compare_key = 'comparator_test.py' , size = 10 , last_update = future_time , src_type = 'local' , dest_type = 's3' , operation_name = '' ) #NEWLINE# should_sync = self . sync_strategy . determine_should_sync ( src_file , dest_file ) #NEWLINE# self . assertTrue ( should_sync ) #NEWLINE# src_file = FileStat ( src = '' , dest = '' , compare_key = 'comparator_test.py' , size = 10 , last_update = future_time , src_type = 's3' , dest_type = 'local' , operation_name = 'download' ) #NEWLINE# dest_file = FileStat ( src = '' , dest = '' , compare_key = 'comparator_test.py' , size = 10 , last_update = time , src_type = 'local' , dest_type = 's3' , operation_name = '' ) #NEWLINE# should_sync = self . sync_strategy . determine_should_sync ( src_file , dest_file ) #NEWLINE# self . assertFalse ( should_sync )