#NEWLINE# def testUnstore( self ) : #NEWLINE# #INDENT# resp = self . merchant . store ( self . credit_card , options = { #NEWLINE# #INDENT# 'plan_id' : 'professional' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEquals ( resp [ 'status' ] , 'SUCCESS' ) #NEWLINE# response = self . merchant . unstore ( resp [ 'response' ] [ 'customer' ] [ 'id' ] ) #NEWLINE# self . assertEquals ( response [ 'status' ] , 'SUCCESS' ) #NEWLINE# self . assertEquals ( response [ 'response' ] [ 'subscription' ] [ 'status' ] , 'cancelled' ) #NEWLINE# response = self . merchant . unstore ( 'abcdef' ) #NEWLINE# self . assertEquals ( response [ 'status' ] , 'FAILURE' ) #NEWLINE# self . assertEquals ( response [ 'response' ] [ 'http_status_code' ] , 404 ) #NEWLINE# self . assertEquals ( response [ 'response' ] [ 'error_msg' ] , 'abcdef not found' )