

def test_force_overwrite(tmpdir):
    'Forced overwrite of existing file succeeds.'
    foo_tif = tmpdir.join('foo.tif')
    foo_tif.write('content')
    (output, inputs) = helpers.resolve_inout(files=[str(x) for x in tmpdir.listdir()], force_overwrite=True)
    assert (output == str(foo_tif))

dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_helpers.py test_force_overwrite/original