#NEWLINE# def test_transfer_retried( self ) : #NEWLINE# #INDENT# '\n        Make sure the transfer task is retried correctly.\n        ' #NEWLINE# storage = QueuedStorage ( local = 'django.core.files.storage.FileSystemStorage' , remote = 'django.core.files.storage.FileSystemStorage' , local_options = dict ( location = self . local_dir ) , remote_options = dict ( location = self . remote_dir ) , task = 'tests.tasks.RetryingTask' ) #NEWLINE# field = models . TestModel . _meta . get_field ( 'testfile' ) #NEWLINE# field . storage = storage #NEWLINE# self . assertFalse ( models . TestModel . retried ) #NEWLINE# obj = models . TestModel ( testfile = File ( self . test_file ) ) #NEWLINE# obj . save ( ) #NEWLINE# self . assertFalse ( obj . testfile . storage . result . get ( ) ) #NEWLINE# self . assertTrue ( models . TestModel . retried )