#NEWLINE# @ classmethod #NEWLINE# def make_mobile_worker( cls , username , domain = None ) : #NEWLINE# #INDENT# domain = ( domain or cls . domain ) #NEWLINE# user = CommCareUser ( username = normalize_username ( username , domain ) , domain = domain ) #NEWLINE# user . domain_membership = DomainMembership ( domain = domain ) #NEWLINE# UserESFake . save_doc ( user . _doc ) #NEWLINE# return user