def METHOD_NAME(client, circ_policy_default_martigny):
    """Test policy retrieval."""
    circ_policy = circ_policy_default_martigny
    item_url = url_for('invenio_records_rest.cipo_item', pid_value='cipo1')
    res = client.get(item_url)
    assert res.status_code == 200
    assert res.headers['ETag'] == '"{}"'.format(circ_policy.revision_id)
    data = get_json(res)
    assert circ_policy.dumps() == data['metadata']
    # Check metadata
    for k in ['created', 'updated', 'metadata', 'links']:
        assert k in data
    # Check self links
    res = client.get(to_relative_url(data['links']['self']))
    assert res.status_code == 200
    json = get_json(res)
    assert data == json
    assert circ_policy.dumps() == data['metadata']
    list_url = url_for('invenio_records_rest.cipo_list', pid='cipo1')
    res = client.get(list_url)
    assert res.status_code == 200
    data = get_json(res)
    assert data['hits']['hits'][0]['metadata'] == circ_policy.replace_refs()