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')

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 .