#NEWLINE# @ classmethod #NEWLINE# def setUpClass( cls ) : #NEWLINE# #INDENT# cls . domain_obj = create_domain ( cls . domain ) #NEWLINE# report = ReportConfiguration ( domain = cls . domain ) #NEWLINE# bootstrap_location_types ( cls . domain ) #NEWLINE# location_code_name_pairs = ( ( 'cambridge_ma' , 'Cambridge' ) , ( 'somerville_ma' , 'Somerville' ) , ( 'boston_ma' , 'Boston' ) ) #NEWLINE# cls . locations = [ ] #NEWLINE# choices = [ ] #NEWLINE# for ( location_code , location_name ) in location_code_name_pairs : #NEWLINE# #INDENT# location = cls . make_location ( location_code_name_pairs , location_name ) #NEWLINE# cls . locations . append ( location ) #NEWLINE# choices . append ( SearchableChoice ( location . location_id , location . sql_location . display_name , searchable_text = [ location_code , location_name ] ) ) #NEWLINE# #UNINDENT# choices . sort ( key = ( lambda choice : choice . display ) ) #NEWLINE# cls . choice_provider = LocationChoiceProvider ( report , None ) #NEWLINE# cls . static_choice_provider = StaticChoiceProvider ( choices )