def create_option_values_for_optionable(optionable_type, **options):
 if (not issubclass(optionable_type, Optionable)):
  raise TypeError(u'The given `optionable_type` was not a subclass of `Optionable`: {}'.format(optionable_type))
 option_values = {}
 registration_function = _options_registration_function(option_values)
 optionable_type.register_options(registration_function)
 option_values.update(**options)
 return create_option_values(option_values)

def create_option_values_for_optionable ( optionable_type , ** options ) : if ( not issubclass ( optionable_type , Optionable ) ) : raise TypeError ( u'The given `optionable_type` was not a subclass of `Optionable`: {}' . format ( optionable_type ) ) option_values = { } registration_function = _options_registration_function ( option_values ) optionable_type . register_options ( registration_function ) option_values . update ( ** options ) return create_option_values ( option_values )
create a fake optionvaluecontainer with appropriate defaults for the given optionable type .