#NEWLINE# def test_payment_method_revoke_renders_a_granted_nonce_unusable( self ) : #NEWLINE# #INDENT# ( granting_gateway , credit_card ) = TestHelper . create_payment_method_grant_fixtures ( ) #NEWLINE# grant_result = granting_gateway . payment_method . grant ( credit_card . token , False ) #NEWLINE# revoke_result = granting_gateway . payment_method . revoke ( credit_card . token ) #NEWLINE# self . assertTrue ( result . is_success ) #NEWLINE# result = Transaction . sale ( { #NEWLINE# #INDENT# 'payment_method_nonce' : grant_result . payment_method_nonce . nonce , #NEWLINE# 'amount' : TransactionAmounts . Authorize , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( result . is_success )