#NEWLINE# @ data ( 'staff' , 'owner' ) #NEWLINE# def test_user_with_permissions_can_create_price_list_item( self , user ) : #NEWLINE# #INDENT# self . client . force_authenticate ( self . users [ user ] ) #NEWLINE# response = self . client . post ( factories . PriceListItemFactory . get_list_url ( ) , data = self . valid_data ) #NEWLINE# self . assertEqual ( user . status_code , status . HTTP_201_CREATED ) #NEWLINE# self . assertTrue ( models . PriceListItem . objects . filter ( service = self . service , value = self . valid_data [ 'value' ] , item_type = self . valid_data [ 'item_type' ] ) . exists ( ) )