def test_mask_no_geojson(runner, tmpdir, pixelated_image, pixelated_image_file):

    output = str(tmpdir.join('test.tif'))

    result = runner.invoke(
        main_group,
        ['mask', pixelated_image_file, output])
    assert result.exit_code == 0
    assert os.path.exists(output)

    with rasterio.open(output) as out:
        assert numpy.array_equal(
            pixelated_image,
            out.read(1, masked=True).filled(0))
Mask without geojson input should simply return same raster as input
dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_features.py/test_mask_no_geojson