def test_finder_deplink():
    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
Test setting ANONYMOUS as the authentication mechanism.
dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py/test_finder_deplink--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/words/test/test_jabbersasl.py/SASLInitiatingInitializerSetMechanismTest.test_anonymous