#NEWLINE# def test_delete_selected_post( self ) : #NEWLINE# #INDENT# post = Post . objects . create ( title = 'A Post Title' , body = 'body' ) #NEWLINE# params = { #NEWLINE# #INDENT# 'action' : 'DeleteSelectedAction' , #NEWLINE# 'selected_model_pk' : str ( post . pk ) , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . post ( reverse ( 'admin2:blog_post_index' ) , params ) #NEWLINE# self . assertInHTML ( '<p>Are you sure you want to delete the selected post? The following item will be deleted:</p>' , force_text ( response . content ) )