#NEWLINE# def test_document_type_edit_view_no_permission( self ) : #NEWLINE# #INDENT# self . login ( username = TEST_USER_USERNAME , password = TEST_USER_PASSWORD ) #NEWLINE# response = self . post ( 'documents:document_type_edit' , args = ( self . document_type . pk , ) , data = { #NEWLINE# #INDENT# 'label' : TEST_DOCUMENT_TYPE_EDITED_LABEL , #NEWLINE# 'delete_time_period' : DEFAULT_DELETE_PERIOD , #NEWLINE# 'delete_time_unit' : DEFAULT_DELETE_TIME_UNIT , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , 403 ) #NEWLINE# self . assertEqual ( DocumentType . objects . get ( pk = self . document_type . pk ) . label , TEST_DOCUMENT_TYPE )