def test_gtiff_profile_protected_driver():
    with pytest.raises(ValueError):
        DefaultGTiffProfile()(driver='PNG')
Overriding the driver is not allowed.
dataset/ETHPy150Open mapbox/rasterio/tests/test_profile.py/test_gtiff_profile_protected_driver