mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
22 lines
507 B
Python
22 lines
507 B
Python
"""Enum tests"""
|
|
|
|
import pytest
|
|
|
|
from rasterio import enums
|
|
|
|
|
|
def test_grey_gray():
|
|
"""Name of ColorInterp.grey is 'gray'"""
|
|
assert enums.ColorInterp.grey.name == "gray"
|
|
|
|
|
|
def test_gray_gray():
|
|
"""Name of ColorInterp.gray is 'gray'"""
|
|
assert enums.ColorInterp.gray.name == "gray"
|
|
|
|
|
|
@pytest.mark.parametrize("resamp", enums.OverviewResampling)
|
|
def test_resampling(resamp):
|
|
"""Make sure that resampling value are the same."""
|
|
assert resamp.value == enums.Resampling[resamp.name].value
|