def test_dst_crs_error_epsg(runner, tmpdir):
    srcname = 'tests/data/RGB.byte.tif'
    outputname = str(tmpdir.join('test.tif'))
    result = runner.invoke(main_group, [
        'warp', srcname, outputname, '--dst-crs', 'EPSG:'])
    assert result.exit_code == 2
    assert 'for dst_crs: invalid literal for int()' in result.output
Malformed EPSG string is a bad parameter.
dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_warp.py/test_dst_crs_error_epsg