def test_mask_invalid_geojson(runner, tmpdir, pixelated_image_file):

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

    # Using invalid JSON
    result = runner.invoke(
        main_group,
        ['mask', pixelated_image_file, output, '--geojson-mask', '-'],
        input='{bogus: value}')
    assert result.exit_code == 2
    assert 'GeoJSON could not be read' in result.output

    # Using invalid GeoJSON
    result = runner.invoke(
        main_group,
        ['mask', pixelated_image_file, output, '--geojson-mask', '-'],
        input='{"bogus": "value"}')
    assert result.exit_code == 2
    assert 'Invalid GeoJSON' in result.output
Finds the mount point for a specified cgroup hierarchy. Works with
dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_features.py/test_mask_invalid_geojson--crossover with--dataset/ETHPy150Open serverdensity/sd-agent/checks.d/docker.py/Docker._find_cgroup