#NEWLINE# def test_missing_adjustments( self ) : #NEWLINE# #INDENT# '\n        _missing_adjustments should return AdjustedImages whose adjusted\n        no longer exists.\n\n        ' #NEWLINE# nonexistant = 'daguerre/test/nonexistant.png' #NEWLINE# if default_storage . exists ( nonexistant ) : #NEWLINE# #INDENT# default_storage . delete ( nonexistant ) #NEWLINE# #UNINDENT# storage_path = self . create_image ( '100x100.png' ) #NEWLINE# adjusted1 = AdjustedImage . objects . create ( requested = 'fit|50|50' , storage_path = storage_path , adjusted = nonexistant ) #NEWLINE# AdjustedImage . objects . create ( requested = 'fit|50|50' , storage_path = storage_path , adjusted = storage_path ) #NEWLINE# clean = Clean ( ) #NEWLINE# self . assertEqual ( list ( clean . _missing_adjustments ( ) ) , [ adjusted1 ] ) #NEWLINE# default_storage . delete ( storage_path )