def test_sort_locations_file_not_find_link(data):
    finder = PackageFinder([], [], session=PipSession())
    files, urls = finder._sort_locations([data.index_url("empty_with_pkg")])
    assert urls and not files, "urls, but not files should have been found"
Test that a file:// url dir that's not a find-link, doesn't get a listdir
dataset/ETHPy150Open pypa/pip/tests/unit/test_index.py/test_sort_locations_file_not_find_link