def METHOD_NAME():
    final_name = tempfile.mktemp()
    with dumper.temp_file('/tmp', final_name) as (_, tmp_path):
        tmp_path = os.path.join('/tmp', tmp_path)
        assert os.path.exists(tmp_path)
        assert not os.path.exists(final_name)
    assert os.path.exists(final_name)
    assert not os.path.exists(tmp_path)
    os.unlink(final_name)