def test_finder_detects_latest_find_links(data):
    req = InstallRequirement.from_line('simple', None)
    finder = PackageFinder([data.find_links], [], session=PipSession())
    link = finder.find_requirement(req, False)
    assert link.url.endswith("simple-3.0.tar.gz")
Test PackageFinder detects latest using find-links
dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py/test_finder_detects_latest_find_links