#NEWLINE# def test_permissions( self ) : #NEWLINE# #INDENT# self . api_client . force_authenticate ( user = AnonymousUser ( ) ) #NEWLINE# response = self . api_client . post ( '/orchestra/api/project/project_information/' , { #NEWLINE# #INDENT# 'project_id' : 1 , #NEWLINE# #UNINDENT# } , format = 'json' ) #NEWLINE# self . assertEquals ( response . status_code , 403 ) #NEWLINE# returned = json . loads ( response . content . decode ( 'utf-8' ) ) #NEWLINE# self . assertEquals ( returned , { #NEWLINE# #INDENT# 'detail' : 'You do not have permission to perform this action.' , #NEWLINE# #UNINDENT# } )