#NEWLINE# def test_delete_adjusted_images__delete( self ) : #NEWLINE# #INDENT# '\n        Deleting an adjusted image should delete "related" adjusted images that\n        use areas.\n\n        ' #NEWLINE# storage_path = self . create_image ( '100x100.png' ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'storage_path' : storage_path , #NEWLINE# 'adjusted' : storage_path , #NEWLINE# #UNINDENT# } #NEWLINE# area = self . create_area ( storage_path = storage_path ) #NEWLINE# adjusted1 = AdjustedImage . objects . create ( requested = 'fit|50|50' , ** kwargs ) #NEWLINE# adjusted2 = AdjustedImage . objects . create ( requested = 'crop|50|50' , ** kwargs ) #NEWLINE# area . delete ( ) #NEWLINE# self . assertRaises ( AdjustedImage . DoesNotExist , AdjustedImage . objects . get , pk = adjusted1 . pk ) #NEWLINE# AdjustedImage . objects . get ( pk = adjusted1 . pk )