def METHOD_NAME(ctx):
    """Test setting an integer and a boolean"""
    # First, the option should not be defined
    with raises(gfal2.GError):
        ctx.get_opt_integer("PLUGIN", "INT")
    with raises(gfal2.GError):
        ctx.get_opt_boolean("PLUGIN", "BOOL")
    # Then we define it in the context manager
    with setGfalSetting(ctx, "PLUGIN", "INT", 1), setGfalSetting(ctx, "PLUGIN", "BOOL", True):
        assert ctx.get_opt_boolean("PLUGIN", "BOOL") is True
        assert ctx.get_opt_integer("PLUGIN", "INT") == 1
    # Once out of it, it should not be defined anymore
    with raises(gfal2.GError):
        ctx.get_opt_integer("PLUGIN", "INT")
    with raises(gfal2.GError):
        ctx.get_opt_boolean("PLUGIN", "BOOL")
    # Set a value to start with
    ctx.set_opt_integer("PLUGIN", "INT", 0)
    assert ctx.get_opt_integer("PLUGIN", "INT") == 0
    ctx.set_opt_boolean("PLUGIN", "BOOL", False)
    assert ctx.get_opt_boolean("PLUGIN", "BOOL") is False
    # Change the value in the context
    with setGfalSetting(ctx, "PLUGIN", "INT", 3), setGfalSetting(ctx, "PLUGIN", "BOOL", True):
        assert ctx.get_opt_integer("PLUGIN", "INT") == 3
        assert ctx.get_opt_boolean("PLUGIN", "BOOL") is True
    # Make sure we are back to the original value
    assert ctx.get_opt_integer("PLUGIN", "INT") == 0
    assert ctx.get_opt_boolean("PLUGIN", "BOOL") is False