def METHOD_NAME(
    self, plugin, pyramid_request, url, expected
):
    if url:
        pyramid_request.params["url"] = url
    assert (
        plugin.get_document_url(
            pyramid_request, sentinel.assignment, sentinel.historical_assignment
        )
        == expected
    )