#NEWLINE# def test_remove_member( self ) : #NEWLINE# #INDENT# self . group_profile . leaders . add ( url . leader ) #NEWLINE# url = reverse ( 'groups.remove_leader' , locale = 'en-US' , args = [ self . group_profile . slug , self . leader . id ] ) #NEWLINE# r = self . client . get ( url ) #NEWLINE# eq_ ( 200 , r . status_code ) #NEWLINE# r = self . client . post ( url ) #NEWLINE# eq_ ( 302 , r . status_code ) #NEWLINE# assert ( self . leader not in self . group_profile . leaders . all ( ) )