#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . password = 'eldarion' #NEWLINE# self . user = get_user_model ( ) . objects . create_user ( username = 'patrick' , password = plan . password ) #NEWLINE# self . user . save ( ) #NEWLINE# customer = Customer . objects . create ( stripe_id = 'cus_1' , user = self . user ) #NEWLINE# plan = Plan . objects . create ( amount = 10 , currency = 'usd' , interval = 'monthly' , interval_count = 1 , name = 'Pro' ) #NEWLINE# self . subscription = Subscription . objects . create ( stripe_id = 'sub_001' , customer = customer , plan = plan , quantity = 1 , start = timezone . now ( ) , status = 'active' )