#NEWLINE# def test_authorize_credit_card_recurring( self ) : #NEWLINE# #INDENT# self . client . _recurring . create_subscription . return_value = '1' #NEWLINE# card = AuthorizeCreditCard ( self . client , self . credit_card ) #NEWLINE# today = date . today ( ) #NEWLINE# result = card . recurring ( 10 , card , months = 1 ) #NEWLINE# self . assertEqual ( self . client . _recurring . create_subscription . call_args , ( ( self . credit_card , 10 , today ) , { #NEWLINE# #INDENT# 'days' : None , #NEWLINE# 'months' : 1 , #NEWLINE# 'occurrences' : None , #NEWLINE# 'trial_amount' : None , #NEWLINE# 'trial_occurrences' : None , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertTrue ( isinstance ( result , AuthorizeRecurring ) ) #NEWLINE# self . assertEqual ( result . uid , '1' )