#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . source = ( settings . TEST_MEDIA_ROOT + '/test.png' ) #NEWLINE# self . tmp_dir = tempfile . mkdtemp ( ) #NEWLINE# self . target = ( noaction_temp_file . tmp_dir + '/target.png' ) #NEWLINE# self . old_temp_file = imagemagick . temp_file #NEWLINE# @ contextmanager #NEWLINE# def noaction_temp_file( target ) : #NEWLINE# #INDENT# ( yield target ) #NEWLINE# #UNINDENT# imagemagick . temp_file = noaction_temp_file