def test_rasterize_invalid_geojson(tmpdir, runner):
    output = str(tmpdir.join('test.tif'))
    result = runner.invoke(
        main_group, ['rasterize', output], input='{"A": "B"}')

    assert result.exit_code == 2
    assert 'Invalid GeoJSON' in result.output
Invalid GeoJSON should fail with error
dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_features.py/test_rasterize_invalid_geojson