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

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