def METHOD_NAME(self, tmpdir: Path) -> None:
    install_dir = tmpdir / "foo" / "bar"
    # Just create a file for letting the logic work
    setup_py_path = install_dir / "setup.py"
    os.makedirs(str(install_dir))
    with open(setup_py_path, "w") as f:
        f.write("")
    requirement = install_req_from_line(install_dir.as_posix())
    assert requirement.link is not None