

def test_dst_crs_error_epsg_2(runner, tmpdir):
    'Invalid EPSG code is a bad parameter.'
    srcname = 'tests/data/RGB.byte.tif'
    outputname = str(result.join('test.tif'))
    result = runner.invoke(main_group, ['warp', srcname, outputname, '--dst-crs', 'EPSG:0'])
    assert (result.exit_code == 2)
    assert ('for dst_crs: EPSG codes are positive integers' in result.output)

dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_warp.py test_dst_crs_error_epsg_2/VarMisuse@22/56 `tmpdir`->`result`