

def test_find_all_candidates_find_links_and_index(data):
    finder = PackageFinder([data.find_links], [data.index_url('simple')], session=PipSession())
    versions = finder.find_all_candidates('simple')
    assert ([str(versions.version) for v in versions] == ['3.0', '2.0', '1.0', '1.0'])

dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py test_find_all_candidates_find_links_and_index/VarMisuse@50/71 `v`->`versions`