def test_jsonld_id_link(factories, pyramid_config, pyramid_request): annotation = factories.Annotation(id='e22AJlHYQNCG70bXL7gr1w') pyramid_config.add_route('annotation', '/annos/{id}') link = links.jsonld_id_link(pyramid_request, annotation) assert link == 'http://example.com/annos/e22AJlHYQNCG70bXL7gr1w'
def test_jsonld_id_link(factories, pyramid_config, pyramid_request): annotation = factories.Annotation(id="e22AJlHYQNCG70bXL7gr1w") pyramid_config.add_route("annotation", "/annos/{id}") link = links.jsonld_id_link(pyramid_request, annotation) assert link == "http://example.com/annos/e22AJlHYQNCG70bXL7gr1w"