#NEWLINE# def test_regular_mode_image_with_folder_delete( self ) : #NEWLINE# #INDENT# parent_folder = Folder . objects . create ( name = 'parent' ) #NEWLINE# image = self . create_image ( folder = parent_folder ) #NEWLINE# base_url = image . get_admin_delete_url ( ) #NEWLINE# response = self . client . get ( base_url ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# response = self . client . post ( base_url , data = { #NEWLINE# #INDENT# 'post' : 'yes' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRedirects ( response = response , expected_url = reverse ( 'admin:filer-directory_listing' , args = [ parent_folder . id ] ) )