#NEWLINE# @ classmethod #NEWLINE# def setUpClass( cls ) : #NEWLINE# #INDENT# cls . domain_obj = create_domain ( cls . domain ) #NEWLINE# report = ReportConfiguration ( domain = cls . domain ) #NEWLINE# cls . group = GroupChoiceProviderTest . make_group ( 'Group' , domain = cls . domain ) #NEWLINE# cls . mobile_worker = UserChoiceProviderTest . make_mobile_worker ( 'mobile-worker' , domain = cls . domain ) #NEWLINE# cls . web_user = UserChoiceProviderTest . make_web_user ( 'web-user@example.com' , domain = cls . domain ) #NEWLINE# cls . location = LocationChoiceProviderTest . make_location ( 'location' , 'Location' , domain = cls . domain ) #NEWLINE# cls . docs = [ cls . group , cls . mobile_worker , cls . web_user , cls . location ] #NEWLINE# cls . choices = [ SearchableChoice ( cls . group . get_id , cls . group . name , [ cls . group . name ] ) , SearchableChoice ( cls . mobile_worker . get_id , report . mobile_worker . raw_username , [ cls . mobile_worker . username ] ) , SearchableChoice ( cls . web_user . get_id , cls . web_user . username , [ cls . web_user . username ] ) , SearchableChoice ( cls . location . location_id , cls . location . sql_location . display_name , [ cls . location . name , cls . location . site_code ] ) ] #NEWLINE# cls . choice_provider = OwnerChoiceProvider ( report , None ) #NEWLINE# cls . static_choice_provider = StaticChoiceProvider ( cls . choices )