File: test_driver_policy.py

package info (click to toggle)
rasterio 1.4.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,760 kB
  • sloc: python: 22,520; makefile: 275; sh: 164; xml: 29
file content (11 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
from rasterio.drivers import is_blacklisted


def test_netcdf_is_blacklisted():
    assert is_blacklisted('netCDF', 'w')
    assert is_blacklisted('netCDF', 'r+')


def test_gtiff_is_not_blacklisted():
    assert not is_blacklisted('GTiff', 'w')
    assert not is_blacklisted('GTiff', 'r+')