#NEWLINE# def test_create_for_paypal_ignores_passed_billing_address_params( self ) : #NEWLINE# #INDENT# nonce = TestHelper . nonce_for_paypal_account ( { #NEWLINE# #INDENT# 'consent_code' : 'PAYPAL_CONSENT_CODE' , #NEWLINE# #UNINDENT# } ) #NEWLINE# customer_id = Customer . create ( ) . customer . id #NEWLINE# result = PaymentMethod . create ( { #NEWLINE# #INDENT# 'payment_method_nonce' : nonce , #NEWLINE# 'customer_id' : customer_id , #NEWLINE# 'billing_address' : { #NEWLINE# #INDENT# 'street_address' : '123 Abc Way' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( result . is_success ) #NEWLINE# self . assertTrue ( isinstance ( result . payment_method , PayPalAccount ) ) #NEWLINE# self . assertFalse ( ( result . payment_method . image_url is None ) ) #NEWLINE# token = found_paypal_account . payment_method . token #NEWLINE# found_paypal_account = PayPalAccount . find ( token ) #NEWLINE# self . assertFalse ( ( found_paypal_account is None ) )