def test_finder_installs_dev_releases(data):
 req = InstallRequirement.from_line('bar', None)
 finder = PackageFinder([], [data.index_url('dev')], allow_all_prereleases=True, session=PipSession())
 link = finder.find_requirement(req, False)
 assert link.url.endswith('bar-2.0.dev1.tar.gz'), link.url

def test_finder_installs_dev_releases ( data ) : req = InstallRequirement . from_line ( 'bar' , None ) finder = PackageFinder ( [ ] , [ data . index_url ( 'dev' ) ] , allow_all_prereleases = True , session = PipSession ( ) ) link = finder . find_requirement ( req , False ) assert link . url . endswith ( 'bar-2.0.dev1.tar.gz' ) , link . url
test packagefinder finds dev releases if asked to .