def test_cmyk_interp(tmpdir):
    with rasterio.open('tests/data/RGB.byte.tif') as src:
        meta = src.meta
    meta['photometric'] = 'CMYK'
    meta['count'] = 4
    tiffname = str(tmpdir.join('foo.tif'))
    with rasterio.open(tiffname, 'w', **meta) as dst:
        assert dst.profile['photometric'] == 'cmyk'
        assert dst.colorinterp(1) == ColorInterp.cyan
        assert dst.colorinterp(2) == ColorInterp.magenta
        assert dst.colorinterp(3) == ColorInterp.yellow
        assert dst.colorinterp(4) == ColorInterp.black
Reload the named service
dataset/ETHPy150Open mapbox/rasterio/tests/test_colorinterp.py/test_cmyk_interp--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/netbsdservice.py/reload_