

def test_finder_deplink():
    '\n    Test PackageFinder with dependency links only\n    '
    req = InstallRequirement.from_line('gmpy==1.15', None)
    finder = PackageFinder([], [], process_dependency_links=True, session=PipSession())
    finder.add_dependency_links(['https://pypi.python.org/packages/source/g/gmpy/gmpy-1.15.zip'])
    link = finder.find_requirement(req, False)
    assert link.url.startswith('https://pypi'), link

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