from importlib.machinery import SourceFileLoader as _SourceFileLoader from importlib.util import spec_from_loader as _spec_from_loader, module_from_spec as _module_from_spec class func: pass def _load_functions(path): global _SourceFileLoader, _spec_from_loader, _module_from_spec, func loader = _SourceFileLoader('func', path) spec = _spec_from_loader(loader.name, loader) func_ = _module_from_spec(spec) loader.exec_module(func_) for function in dir(func_): if function.startswith('_'): continue setattr(func, function, getattr(func_, function)) _load_functions('tests/dictionaries/../eosfunc/test.py') try: from tiramisu3 import * except: from tiramisu import * option_1 = FilenameOption(name="certificate", doc="certificate", default="/etc/pki/tls/certs/example.crt", properties=frozenset({"mandatory", "normal"})) option_2 = FilenameOption(name="private", doc="private", default="/etc/pki/tls/private/example.key", properties=frozenset({"mandatory", "normal"})) option_3 = FilenameOption(name="authority", doc="authority", default="/etc/pki/ca-trust/source/anchors/ca_example.crt", properties=frozenset({"mandatory", "normal"})) option_4 = UsernameOption(name="owner", doc="owner", default="example", properties=frozenset({"mandatory", "normal"})) option_5 = UsernameOption(name="group", doc="group", default="example", properties=frozenset({"mandatory", "normal"})) option_6 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"})) optiondescription_18 = OptionDescription(name="rougail", doc="Rougail", children=[option_1, option_2, option_3, option_4, option_5, option_6]) option_11 = SymLinkOption(name="authority", opt=option_3) option_12 = SymLinkOption(name="domain", opt=option_6) option_13 = SymLinkOption(name="group", opt=option_5) option_14 = SymLinkOption(name="name", opt=option_1) option_15 = SymLinkOption(name="owner", opt=option_4) option_16 = SymLinkOption(name="private", opt=option_2) option_10 = BoolOption(name="activate", doc="activate", default=True) optiondescription_9 = OptionDescription(name="certificate", doc="certificate", children=[option_11, option_12, option_13, option_14, option_15, option_16, option_10]) optiondescription_9.impl_set_information('type', "client") optiondescription_8 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_9]) option_7 = BoolOption(name="activate", doc="activate", default=True) option_17 = BoolOption(name="manage", doc="manage", default=True) optiondescription_20 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_8, option_7, option_17]) optiondescription_20.impl_set_information('type', "service") optiondescription_19 = OptionDescription(name="services", doc="services", children=[optiondescription_20], properties=frozenset({"hidden"})) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_18, optiondescription_19])