def METHOD_NAME(self, db_request):
    name = "pip"
    version = "10.0.0"
    db_request.params = {"name": name, "version": version}
    db_request.route_path = pretend.call_recorder(
        lambda *a, **kw: f"/project/{name}/{version}/#files"
    )
    result = pypi.files(db_request)
    assert isinstance(result, HTTPMovedPermanently)
    assert result.headers["Location"] == (f"/project/{name}/{version}/#files")
    assert result.status_code == 301
    assert db_request.route_path.calls == [
        pretend.call(
            "packaging.release", name=name, version=version, _anchor="files"
        )
    ]