

def test_warp_reproject_bounds_crossup_fail(runner, tmpdir):
    'Crossed-up bounds raises click.BadParameter.'
    srcname = 'tests/data/shade.tif'
    outputname = str(tmpdir.join('test.tif'))
    out_bounds = [(- 11850000), 4810000, (- 11849000), 4812000]
    result = runner.invoke(warp.warp, ([srcname, outputname, '--dst-crs', 'EPSG:4326', '--res', 0.001, '--x-dst-bounds'] + out_bounds))
    assert (outputname.exit_code == 2)

dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_warp.py test_warp_reproject_bounds_crossup_fail/VarMisuse@81/152 `result`->`outputname`