#NEWLINE# def test_create_with_card_verification_returns_risk_data( self ) : #NEWLINE# #INDENT# customer = Customer . create ( ) . customer #NEWLINE# result = CreditCard . create ( { #NEWLINE# #INDENT# 'customer_id' : customer . id , #NEWLINE# 'number' : '4000111111111115' , #NEWLINE# 'expiration_date' : '05/2014' , #NEWLINE# 'options' : { #NEWLINE# #INDENT# 'verify_card' : True , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( result . is_success ) #NEWLINE# verification = result . credit_card_verification #NEWLINE# self . assertIsInstance ( verification . risk_data , RiskData ) #NEWLINE# self . assertEquals ( self . risk_data . id , None ) #NEWLINE# self . assertEquals ( verification . risk_data . decision , 'Not Evaluated' )