#NEWLINE# def test_create_with_invalid_venmo_sdk_payment_method_code( self ) : #NEWLINE# #INDENT# customer = Customer . create ( ) . customer #NEWLINE# result = CreditCard . create ( { #NEWLINE# #INDENT# 'customer_id' : customer . id , #NEWLINE# 'venmo_sdk_payment_method_code' : venmo_sdk . InvalidPaymentMethodCode , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( result . is_success ) #NEWLINE# self . assertEquals ( result . message , 'Invalid VenmoSDK payment method code' ) #NEWLINE# self . assertEquals ( result . errors . for_object ( 'credit_card' ) . on ( 'venmo_sdk_payment_method_code' ) [ 0 ] . code , ErrorCodes . CreditCard . InvalidVenmoSDKPaymentMethodCode )