#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( CommTrackSyncTest , self ) . setUp ( ) #NEWLINE# self . casexml_user = self . user . to_casexml_user ( ) #NEWLINE# self . sp_block = CaseBlock ( case_id = self . sp . case_id ) . as_xml ( ) #NEWLINE# self . ct_settings . consumption_config = ConsumptionConfig ( min_transactions = 0 , min_window = 0 , optimal_window = 60 ) #NEWLINE# self . ct_settings . ota_restore_config = StockRestoreConfig ( section_to_consumption_types = { #NEWLINE# #INDENT# 'stock' : 'consumption' , #NEWLINE# #UNINDENT# } ) #NEWLINE# set_default_monthly_consumption_for_domain ( self . domain . name , 5 ) #NEWLINE# self . ota_settings = self . ct_settings . get_ota_restore_settings ( ) #NEWLINE# restore_config = RestoreConfig ( project = self . domain , user = self . casexml_user , params = RestoreParams ( version = V2 ) ) #NEWLINE# self . sync_log_id = synclog_id_from_restore_payload ( restore_config . get_payload ( ) . as_string ( ) )