def test_relative_local_find_links(self, finder, monkeypatch):
        # Make sure the test also passes on windows
        req_file = os.path.normcase(os.path.abspath(
            os.path.normpath('/path/req_file.txt')))
        nested_link = os.path.normcase(os.path.abspath(
            os.path.normpath('/path/rel_path')))
        exists_ = os.path.exists

        def exists(path):
            if path == nested_link:
                return True
            else:
                exists_(path)
        monkeypatch.setattr(os.path, 'exists', exists)
        list(process_line("--find-links=rel_path", req_file, 1,
                          finder=finder))
        assert finder.find_links == [nested_link]
Test a relative find_links path is joined with the req file directory
dataset/ETHPy150Open pypa/pip/tests/unit/test_req_file.py/TestProcessLine.test_relative_local_find_links