#NEWLINE# def test_generate_deleted_file( self ) : #NEWLINE# #INDENT# "generate_thumbnail does not fail if file doesn't actually exist." #NEWLINE# image = ImageAttachment ( content_object = self . obj , creator = self . user ) #NEWLINE# with open ( 'kitsune/upload/tests/media/test.jpg' ) as f : #NEWLINE# #INDENT# up_file = File ( f ) #NEWLINE# image . file . save ( up_file . name , up_file , save = True ) #NEWLINE# #UNINDENT# os . remove ( f . file . path ) #NEWLINE# generate_thumbnail ( image , 'file' , 'thumbnail' )