

def test_warp_no_reproject_res(runner, tmpdir):
    srcname = 'tests/data/shade.tif'
    outputname = str(tmpdir.join('test.tif'))
    result = runner.invoke(warp.warp, [srcname, outputname, '--res', 30])
    assert (result.exit_code == 0)
    assert os.path.exists(output)
    with rasterio.open(srcname) as src:
        with rasterio.open(outputname) as output:
            assert (output.crs == src.crs)
            assert numpy.allclose([30, 30], [output.affine.a, (- output.affine.e)])
            assert (output.width == 327)
            assert (output.height == 327)

dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_warp.py test_warp_no_reproject_res/VarMisuse@65/95 `outputname`->`output`