#NEWLINE# @ classmethod #NEWLINE# def setUpClass( cls ) : #NEWLINE# #INDENT# super ( SOHSLABTest , cls ) . setUpClass ( ) #NEWLINE# SLABConfig . objects . create ( is_pilot = True , sql_location = cls . facility . sql_location ) #NEWLINE# config = CommtrackConfig . for_domain ( TEST_DOMAIN ) #NEWLINE# config . use_auto_consumption = False #NEWLINE# config . individual_consumption_defaults = True #NEWLINE# config . consumption_config = ConsumptionConfig ( use_supply_point_type_default_consumption = True , exclude_invalid_periods = True ) #NEWLINE# config . save ( ) #NEWLINE# set_default_consumption_for_supply_point ( TEST_DOMAIN , cls . id . get_id , cls . facility_sp_id , 100 ) #NEWLINE# set_default_consumption_for_supply_point ( TEST_DOMAIN , cls . dp . get_id , config . facility_sp_id , 100 ) #NEWLINE# set_default_consumption_for_supply_point ( TEST_DOMAIN , cls . ip . get_id , cls . facility_sp_id , 100 )