#NEWLINE# def test_user_cannot_change_ip_mapping_single_field_of_project_he_has_role_in( self ) : #NEWLINE# #INDENT# for user_role in self . users : #NEWLINE# #INDENT# self . client . force_authenticate ( self . users [ user_role ] ) #NEWLINE# data = { #NEWLINE# #INDENT# 'public_ip' : '1.2.3.4' , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . patch ( factories . IpMappingFactory . get_url ( self . ip_mapping ) , data ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_403_FORBIDDEN )