def test_sort_locations_non_existing_path():
 finder = PackageFinder([], [], session=PipSession())
 (files, urls) = finder._sort_locations([os.path.join('this', 'doesnt', 'exist')])
 assert ((not urls) and (not files)), 'nothing should have been found'

def test_sort_locations_non_existing_path ( ) : finder = PackageFinder ( [ ] , [ ] , session = PipSession ( ) ) ( files , urls ) = finder . _sort_locations ( [ os . path . join ( 'this' , 'doesnt' , 'exist' ) ] ) assert ( ( not urls ) and ( not files ) ) , 'nothing should have been found'
test that a non-existing path is ignored .