#NEWLINE# def test_regular_users_get_404( self ) : #NEWLINE# #INDENT# 'Test that regular users cannot view nor edit' #NEWLINE# group = self . create_group ( group__name = 'Original Name' , description = 'First Description' ) #NEWLINE# user = self . create_user ( ) #NEWLINE# self . login ( user ) #NEWLINE# get_response = self . client . get ( reverse ( 'update_group' , args = [ group . pk ] ) ) #NEWLINE# self . assertEqual ( get_response . status_code , 404 ) #NEWLINE# post_response = self . client . post ( reverse ( 'update_group' , args = [ group . pk ] ) , { #NEWLINE# #INDENT# 'authgroup_form-name' : 'New Name' , #NEWLINE# 'group_form-description' : 'Second Description' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( post_response . status_code , 404 ) #NEWLINE# updated_group = Group . objects . get ( pk = group . pk ) #NEWLINE# self . assertEqual ( updated_group . group . name , 'Original Name' ) #NEWLINE# self . assertEqual ( updated_group . description , 'First Description' )