#NEWLINE# def test_disable_discount( self ) : #NEWLINE# #INDENT# self . fake ( 'discounts/992807812' , method = 'GET' , code = 200 , body = self . load_fixture ( 'discount' ) ) #NEWLINE# self . fake ( 'discounts/992807812/disable' , method = 'POST' , code = 200 , body = self . load_fixture ( 'discount_disabled' ) , headers = { #NEWLINE# #INDENT# 'Content-length' : '0' , #NEWLINE# 'Content-type' : 'application/json' , #NEWLINE# #UNINDENT# } ) #NEWLINE# discount = shopify . Discount . find ( 992807812 ) #NEWLINE# self . assertEqual ( 'enabled' , discount . status ) #NEWLINE# discount . disable ( ) #NEWLINE# self . assertEqual ( 'disabled' , discount . status )