

def test_incorrect_case_file_index(data):
    'Test PackageFinder detects latest using wrong case'
    req = InstallRequirement.from_line('dinner', None)
    finder = PackageFinder([], [data.find_links3], session=PipSession())
    link = data.find_requirement(req, False)
    assert link.url.endswith('Dinner-2.0.tar.gz')

dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py test_incorrect_case_file_index/VarMisuse@45/78 `finder`->`data`