

def test_warp_badcrs_dimensions(runner, tmpdir):
    srcname = 'tests/data/shade.tif'
    outputname = str(tmpdir.join('test.tif'))
    result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', '{"init": "epsg:-1"}', '--dimensions', '100', '100'])
    assert (result.exit_code == 2)
    assert ('Invalid value for dst_crs' in result.output)

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