#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# case = CaseFactory ( domain = self . domain . name ) . create_case ( ) #NEWLINE# self . case_id = case . case_id #NEWLINE# self . product_id = uuid . uuid4 ( ) . hex #NEWLINE# SQLProduct ( product_id = self . product_id , domain = self . domain . name ) . save ( ) #NEWLINE# self . _stock_report = functools . partial ( _stock_report , self . domain . name , self . case_id , self . product_id ) #NEWLINE# self . _receipt_report = functools . partial ( _receipt_report , self . domain . name , self . case_id , case . product_id ) #NEWLINE# self . _test_config = ConsumptionConfiguration . test_config ( ) #NEWLINE# self . _compute_consumption = functools . partial ( compute_daily_consumption , self . domain . name , self . case_id , self . product_id , now , configuration = self . _test_config )