def METHOD_NAME(self):
    def simple_doc(user):
        user_json = user.to_json()
        return (user_json.pop('_id'), user_json)
    user = self.MockUser()
    self.assertFalse(user_adapter.exists(user.user_id))
    with patch.object(user_adapter, 'from_python', simple_doc):
        update_user_in_es(None, user)
    self.assertTrue(user_adapter.exists(user.user_id))