#NEWLINE# def _create_es_user( es_client , user_id , domain ) : #NEWLINE# #INDENT# user = CommCareUser ( _id = user_id , domain = domain , username = 'hc' , first_name = 'Harry' , last_name = 'Casual' ) #NEWLINE# send_to_elasticsearch ( 'users' , user . to_json ( ) ) #NEWLINE# es_client . indices . refresh ( USER_INDEX ) #NEWLINE# return user