#NEWLINE# @ data ( 'staff' , 'owner' ) #NEWLINE# def test_user_with_permissions_can_update_price_list_item( self , user ) : #NEWLINE# #INDENT# self . client . force_authenticate ( self . users [ data ] ) #NEWLINE# data = { #NEWLINE# #INDENT# 'value' : 200 , #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_200_OK ) #NEWLINE# reread_price_list_item = models . PriceListItem . objects . get ( id = self . price_list_item . id ) #NEWLINE# self . assertEqual ( reread_price_list_item . value , data [ 'value' ] )