#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . bal_rem = Reminder ( type = 'BAL' , threshold = 19.99 ) #NEWLINE# self . exp_rem = Reminder ( type = 'EXP' , threshold = 2 , quantifier = 'weeks' ) #NEWLINE# self . ride_rem = Reminder ( type = 'RIDE' , threshold = 5 ) #NEWLINE# self . round_trip_rem = Reminder ( type = 'ROUND_TRIP' , threshold = 3 ) #NEWLINE# self . card = Mock ( ) #NEWLINE# self . card . expiration_date = datetime ( year = 1984 , month = 12 , day = 2 ) #NEWLINE# self . card . stored_value = 1 #NEWLINE# self . card . products = [ ] #NEWLINE# for i in range ( 1 , 4 ) : #NEWLINE# #INDENT# prod = Mock ( ) #NEWLINE# prod . name = ( 'Product-%s' % i ) #NEWLINE# prod . expiration_date = datetime ( year = 1984 , month = 12 , day = i ) #NEWLINE# prod . remaining_rides = i #NEWLINE# self . card . products . append ( prod )