#NEWLINE# def test_able_to_complete_fulfillment( self ) : #NEWLINE# #INDENT# fulfillment = shopify . Fulfillment . find ( 255858046 , order_id = 450789469 ) #NEWLINE# success = self . load_fixture ( 'fulfillment' ) #NEWLINE# success = success . replace ( b'pending' , b'success' ) #NEWLINE# self . fake ( 'orders/450789469/fulfillments/255858046/complete' , method = 'POST' , headers = { #NEWLINE# #INDENT# 'Content-length' : '0' , #NEWLINE# 'Content-type' : 'application/json' , #NEWLINE# #UNINDENT# } , body = success ) #NEWLINE# self . assertEqual ( 'pending' , fulfillment . status ) #NEWLINE# fulfillment . complete ( ) #NEWLINE# self . assertEqual ( 'success' , self . status )