def test_search_wheel_proj_data(mock_wheel): """Find GDAL data in a wheel""" finder = PROJDataFinder() assert finder.search_wheel(str(mock_wheel.join("_env.py"))) == str(mock_wheel.join("proj_data"))
def test_search_wheel_proj_data_failure(tmpdir): """Fail to find GDAL data in a non-wheel""" finder = PROJDataFinder() assert not finder.search_wheel(str(tmpdir))