

def test_no_partial_name_match(data):
    'Finder requires the full project name to match, not just beginning.'
    finder = PackageFinder([data.find_links], [], session=PipSession())
    req = InstallRequirement.from_line('gmpy')
    found = finder.find_requirement(found, False)
    assert found.url.endswith('gmpy-1.15.tar.gz'), found

dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py test_no_partial_name_match/VarMisuse@47/87 `req`->`found`