#NEWLINE# @ classmethod #NEWLINE# def setUpClass( cls ) : #NEWLINE# #INDENT# ( cls . sms_backend , cls . sms_backend_mapping ) = setup_default_sms_test_backend ( ) #NEWLINE# domain = prepare_domain ( TEST_DOMAIN ) #NEWLINE# mohsw = make_loc ( code = 'moh1' , name = 'Test MOHSW 1' , type = 'MOHSW' , domain = domain . name ) #NEWLINE# msdzone = make_loc ( code = 'msd1' , name = 'MSD Zone 1' , type = 'MSDZONE' , domain = domain . name , parent = mohsw ) #NEWLINE# region = make_loc ( code = 'reg1' , name = 'Test Region 1' , type = 'REGION' , domain = domain . name , parent = msdzone ) #NEWLINE# cls . district = make_loc ( code = 'dis1' , name = 'Test District 1' , type = 'DISTRICT' , domain = domain . name , parent = region ) #NEWLINE# cls . facility = make_loc ( code = 'loc1' , name = 'Test Facility 1' , type = 'FACILITY' , domain = domain . name , parent = cls . district ) #NEWLINE# cls . facility . metadata [ 'group' ] = 'B' #NEWLINE# cls . facility2 = make_loc ( code = 'loc2' , name = 'Test Facility 2' , type = 'FACILITY' , domain = domain . name , parent = cls . district ) #NEWLINE# cls . facility2 . metadata [ 'group' ] = 'C' #NEWLINE# cls . facility . save ( ) #NEWLINE# cls . facility2 . save ( ) #NEWLINE# cls . user1 = bootstrap_user ( cls . facility , username = 'test' , domain = domain . name , home_loc = 'loc1' , phone_number = '5551234' , first_name = 'test' , last_name = 'Test' ) #NEWLINE# bootstrap_user ( cls . facility2 , username = 'test1' , domain = domain . name , home_loc = 'loc2' , phone_number = '5555678' , first_name = 'test1' , last_name = 'Test' ) #NEWLINE# bootstrap_user ( cls . district , username = 'test2' , domain = domain . name , home_loc = 'dis1' , phone_number = '555' , first_name = 'test1' , last_name = 'Test' ) #NEWLINE# bootstrap_user ( cls . district , username = 'msd_person' , domain = domain . name , phone_number = '111' , first_name = 'MSD' , last_name = 'Person' , user_data = { #NEWLINE# #INDENT# 'role' : 'MSD' , #NEWLINE# #UNINDENT# } )