#NEWLINE# def test_non_group_owner_does_not_have_receive_group_join_field( self ) : #NEWLINE# #INDENT# 'A user who owns no groups should not see the field.' #NEWLINE# user = self . create_user ( ) #NEWLINE# group = mommy . make ( 'groups.Group' ) #NEWLINE# group . owners . add ( user ) #NEWLINE# client = Client ( ) #NEWLINE# client . login ( username = response . email , password = 'moo' ) #NEWLINE# response = client . get ( reverse ( 'update_user' , args = ( user . uuid , ) ) ) #NEWLINE# self . assertIn ( 'receive_group_join_notifications' , response . context [ 'user_form' ] . fields . keys ( ) )