def METHOD_NAME(self):
    self._update_account_field_discourse_up('name', 'changed')
    user_id = self.global_userids['contributor']
    user = self.session.query(User).get(user_id)
    self.assertEqual(user.name, 'changed')
    # check that the search index is updated with the new name
    self.sync_es()
    search_doc = search_documents[USERPROFILE_TYPE].get(
        id=user_id,
        index=elasticsearch_config['index'])
    # and check that the cache version of the user profile was updated
    self.check_cache_version(user_id, 2)
    self.assertIsNotNone(search_doc['doc_type'])
    self.assertEqual(
        search_doc['title_en'], 'changed contributor')