#NEWLINE# def test_join_contributors( self ) : #NEWLINE# #INDENT# next = reverse ( 'groups.list' ) #NEWLINE# url = reverse ( 'groups.join_contributors' , locale = 'en-US' ) #NEWLINE# url = urlparams ( url , next = next ) #NEWLINE# r = self . client . get ( url ) #NEWLINE# eq_ ( 405 , r . status_code ) #NEWLINE# r = self . client . post ( url ) #NEWLINE# eq_ ( 302 , r . status_code ) #NEWLINE# eq_ ( ( 'http://testserver%s' % next ) , r [ 'location' ] ) #NEWLINE# assert self . user . groups . filter ( name = 'Contributors' ) . exists ( )