def METHOD_NAME(run_cli_command, config_with_profile_factory):
    """Test the `verdi config set` command when setting an option."""
    config = config_with_profile_factory()
    option_name = 'daemon.timeout'
    option_values = [str(10), str(20)]
    for option_value in option_values:
        options = ['config', 'set', option_name, option_value]
        run_cli_command(cmd_verdi.verdi, options, use_subprocess=False)
        assert str(config.get_option(option_name, scope=get_profile().name)) == option_value