#NEWLINE# def test_member_list_is_not_published( self ) : #NEWLINE# #INDENT# 'Test that member list returns 404 if not published.' #NEWLINE# group = mommy . make ( 'groups.Group' , member_list_published = False ) #NEWLINE# user = self . create_user ( ) #NEWLINE# self . client . login ( username = user . email , password = 'moo' ) #NEWLINE# response = self . client . get ( reverse ( 'group_members' , kwargs = { #NEWLINE# #INDENT# 'pk' : user . pk , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertIsInstance ( response , HttpResponseNotFound )