

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

dataset/ETHPy150Open pytent/pytentd/tentd/tests/__init__.py response_has_link_header/original