#NEWLINE# @ data ( 'manager' ) #NEWLINE# def test_user_without_permissions_cannot_update_price_list_item( self , user ) : #NEWLINE# #INDENT# self . client . force_authenticate ( self . users [ user ] ) #NEWLINE# data = { #NEWLINE# #INDENT# 'items' : [ { #NEWLINE# #INDENT# 'name' : 'cpu' , #NEWLINE# 'value' : 1000 , #NEWLINE# 'units' : 'USD per CPU' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . patch ( factories . PriceListItemFactory . get_url ( self . price_list_item ) , data = data ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_403_FORBIDDEN )