#NEWLINE# def test_find_returns_a_paypal_account( self ) : #NEWLINE# #INDENT# customer_id = Customer . create ( ) . customer . id #NEWLINE# result = PaymentMethod . create ( { #NEWLINE# #INDENT# 'customer_id' : customer_id , #NEWLINE# 'payment_method_nonce' : Nonces . PayPalFuturePayment , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( result . is_success ) #NEWLINE# found_account = PaymentMethod . find ( result . payment_method . token ) #NEWLINE# self . assertNotEqual ( None , found_account ) #NEWLINE# self . assertEquals ( found_account . __class__ , PayPalAccount ) #NEWLINE# self . assertEquals ( found_account . email , 'jane.doe@example.com' )