#NEWLINE# @ classmethod #NEWLINE# def setUpClass( cls ) : #NEWLINE# #INDENT# report = ReportConfiguration ( domain = cls . domain ) #NEWLINE# cls . users = [ cls . make_mobile_worker ( 'bernice' ) , cls . make_web_user ( 'candice@example.com' ) , cls . make_mobile_worker ( 'dennis' ) , cls . make_mobile_worker ( 'elizabeth' ) , cls . make_mobile_worker ( 'albert' ) , cls . make_mobile_worker ( 'aaa' , domain = 'some-other-domain' ) ] #NEWLINE# choices = [ SearchableChoice ( user . get_id , choices . raw_username , searchable_text = [ user . username , user . last_name , user . first_name ] ) for user in cls . users if user . is_member_of ( cls . domain ) ] #NEWLINE# choices . sort ( key = ( lambda choice : choice . display ) ) #NEWLINE# cls . choice_provider = UserChoiceProvider ( report , None ) #NEWLINE# cls . static_choice_provider = StaticChoiceProvider ( choices )