def test_sort_locations_file_expand_dir(data):
 finder = PackageFinder([data.find_links], [], session=PipSession())
 (files, urls) = finder._sort_locations([data.find_links], expand_dir=True)
 assert (files and (not urls)), ('files and not urls should have been found at find-links url: %s' % data.find_links)

def test_sort_locations_file_expand_dir ( data ) : finder = PackageFinder ( [ data . find_links ] , [ ] , session = PipSession ( ) ) ( files , urls ) = finder . _sort_locations ( [ data . find_links ] , expand_dir = True ) assert ( files and ( not urls ) ) , ( 'files and not urls should have been found at find-links url: %s' % data . find_links )
test that a file:// dir gets listdir run with expand_dir .