

def test_finder_installs_dev_releases(data):
    '\n    Test PackageFinder finds dev releases if asked to.\n    '
    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

dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py test_finder_installs_dev_releases/original