#NEWLINE# def test_user_not_added_to_group( self ) : #NEWLINE# #INDENT# 'The user should not be added as a group owner or member on update.' #NEWLINE# user = self . create_superuser ( ) #NEWLINE# c = Client ( ) #NEWLINE# c . login ( username = user . email , password = 'moo' ) #NEWLINE# c . post ( reverse ( 'update_group' , args = [ user . group . pk ] ) , { #NEWLINE# #INDENT# 'authgroup_form-name' : 'Whatever' , #NEWLINE# 'group_form-category' : '1' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( self . group . owners . filter ( pk = user . pk ) . exists ( ) ) #NEWLINE# self . assertFalse ( user . groups_joined . filter ( pk = self . group . pk ) . exists ( ) )