#NEWLINE# def test_payment_method_grant_returns_a_nonce_that_is_vaultable( self ) : #NEWLINE# #INDENT# ( granting_gateway , credit_card ) = TestHelper . create_payment_method_grant_fixtures ( ) #NEWLINE# grant_result = granting_gateway . payment_method . grant ( credit_card . token , True ) #NEWLINE# customer_id = Customer . create ( ) . customer . id #NEWLINE# result = PaymentMethod . create ( { #NEWLINE# #INDENT# 'customer_id' : customer_id , #NEWLINE# 'payment_method_nonce' : grant_result . payment_method_nonce . nonce , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( result . is_success )