def test_rasterize_fill_value(basic_geometry, basic_image_2x2):

    default_value = 2
    with Env():
        assert numpy.array_equal(
            basic_image_2x2 + 1,
            rasterize(
                [basic_geometry], out_shape=DEFAULT_SHAPE, fill=1,
                default_value=default_value
            )
        )
All pixels not covered by shapes should be given fill value
dataset/ETHPy150Open mapbox/rasterio/tests/test_features.py/test_rasterize_fill_value