#NEWLINE# def test_register_district_lowercase( self ) : #NEWLINE# #INDENT# with localize ( 'sw' ) : #NEWLINE# #INDENT# response = unicode ( REGISTRATION_CONFIRM_DISTRICT ) #NEWLINE# #UNINDENT# script = ( '\n          5551234 > sajili Test Test : testdistrict\n          5551234 < %(registration_confirm)s\n        ' % { #NEWLINE# #INDENT# 'registration_confirm' : ( response % { #NEWLINE# #INDENT# 'sdp_name' : response . district3 . name , #NEWLINE# 'contact_name' : 'Test Test' , #NEWLINE# #UNINDENT# } ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . run_script ( script ) #NEWLINE# self . assertEqual ( CommCareUser . get_by_username ( 'stella' ) . location . site_code , 'd10102' )