'Helper method: Uses the REST API to update the fields of an XBlock.
This will result in the XBlock\'s editor_saved() method being called.'

def _update_item(self, usage_key, metadata):

    update_url = reverse_usage_url('xblock_handler', usage_key)
    return self.client.ajax_post(update_url, data={'metadata': metadata})
