def test_search_debian_gdal_data(mock_debian): """Find GDAL data under Debian locations""" finder = GDALDataFinder() assert finder.search_debian(str(mock_debian)) == str( mock_debian.join("share").join("gdal").join("{}".format( str(gdal_version))))
def test_search_debian_gdal_data(mock_debian): """Find GDAL data under Debian locations""" finder = GDALDataFinder() assert finder.search_debian(str(mock_debian)) == str(mock_debian.join("share").join("gdal").join("{}".format(str(gdal_version))))
def test_search_debian_gdal_data_failure(tmpdir): """Fail to find GDAL data in a bogus Debian location""" finder = GDALDataFinder() assert not finder.search_debian(str(tmpdir))
def test_search_debian_gdal_data_failure(tmpdir): """Fail to find GDAL data in a bogus Debian location""" finder = GDALDataFinder() assert not finder.search_debian(str(tmpdir))