def test_search_gdal_data_debian(mock_debian): """Find GDAL data under Debian locations""" finder = GDALDataFinder() assert finder.search(str(mock_debian)) == str( mock_debian.join("share").join("gdal").join("{}".format( str(gdal_version))))
def test_search_gdal_data_fhs(mock_fhs): finder = GDALDataFinder() assert finder.search(str(mock_fhs)) == str( mock_fhs.join("share").join("gdal"))
def test_search_gdal_data_wheel(mock_wheel): finder = GDALDataFinder() assert finder.search(str(mock_wheel.join("_env.py"))) == str( mock_wheel.join("gdal_data"))
def test_search_gdal_data_debian(mock_debian): """Find GDAL data under Debian locations""" finder = GDALDataFinder() assert finder.search(str(mock_debian)) == str(mock_debian.join("share").join("gdal").join("{}".format(str(gdal_version))))
def test_search_gdal_data_fhs(mock_fhs): finder = GDALDataFinder() assert finder.search(str(mock_fhs)) == str(mock_fhs.join("share").join("gdal"))
def test_search_gdal_data_wheel(mock_wheel): finder = GDALDataFinder() assert finder.search(str(mock_wheel.join("_env.py"))) == str(mock_wheel.join("gdal_data"))