#NEWLINE# def test_valid_message_remove_multiple( self ) : #NEWLINE# #INDENT# ' ``POST`` to remove multiple messages ' #NEWLINE# client = self . client . login ( username = 'john' , password = 'blowfish' ) #NEWLINE# response = self . client . post ( reverse ( 'userena_umessages_remove' ) , data = { #NEWLINE# #INDENT# 'message_pks' : [ 1 , 2 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRedirects ( msg_list , reverse ( 'userena_umessages_list' ) ) #NEWLINE# msg_list = Message . objects . filter ( pk__in = [ '1' , '2' ] , sender_deleted_at__isnull = False ) #NEWLINE# self . assertEqual ( msg_list . count ( ) , 2 )