File: test_tag_ns.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 (13 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
import rasterio


def test_get_tag_item():
    """Should return the correct list of dataset tag namespaces."""
    with rasterio.open('tests/data/cogeo.tif') as src:
        assert src.tag_namespaces() == ['IMAGE_STRUCTURE', 'DERIVED_SUBDATASETS']


def test_get_tag_item():
    """Should return the correct list of band tag namespaces."""
    with rasterio.open('tests/data/cogeo.tif') as src:
        assert src.tag_namespaces(bidx=1) == []