def response_has_link_header(response):
    link = '<{}>; rel="https://tent.io/rels/profile"'.format(
        profile_url_for(g.entity, _external=True))
    return response.headers['Link'] == link
Test that a response includes an entity link header
dataset/ETHPy150Open pytent/pytentd/tentd/tests/__init__.py/response_has_link_header