

def test_duplicates_sort_ok(data):
    'Finder successfully finds one of a set of duplicates in different\n    locations'
    finder = PackageFinder([data.find_links, data.find_links2], [], session=PipSession())
    req = InstallRequirement.from_line('duplicate')
    found = finder.find_requirement(req, False)
    assert found.url.endswith('duplicate-1.0.tar.gz'), finder

dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py test_duplicates_sort_ok/VarMisuse@66/121 `found`->`finder`