

@pytest.mark.xfail(os.environ.get('GDALVERSION', 'a.b.c').startswith('1.9'), reason="GDAL 1.9 doesn't catch this error")
def test_dst_crs_error_2(runner, tmpdir):
    'Invalid PROJ.4 is a bad parameter.'
    srcname = 'tests/data/RGB.byte.tif'
    outputname = str(tmpdir.join('test.tif'))
    result = runner.invoke(main_group, ['warp', srcname, outputname, '--dst-crs', '{"proj": "foobar"}'])
    assert (result.exit_code == 2)
    assert ('for dst_crs: Failed to initialize PROJ.4' in result.output)

dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_warp.py test_dst_crs_error_2/original