1 from coolfluid
import *
4 env = Core.environment()
6 env.options().set(
'assertion_backtrace',
False)
7 env.options().set(
'exception_backtrace',
False)
8 env.options().set(
'regist_signal_handlers',
False)
9 env.options().set(
'exception_log_level', 0)
10 env.options().set(
'log_level', 4)
11 env.options().set(
'exception_outputs',
False)
13 cf_check(env.log_level == 4,
'Failed to set the log level at 4')
16 journal = root.create_component(
"journal",
"cf3.common.Journal")
17 cf_check(journal.options.RecordReplies ==
False,
'RecordReplies of the journal is not false')
21 group = root.create_component(
"group",
"cf3.common.Group")
22 before_move = journal.uri()
24 journal.move_component(group.uri())
25 after_move = journal.uri()
27 cf_check(before_move != after_move,
'Failed to move the component')
29 action_director = root.create_component(
'director',
'cf3.common.ActionDirector')
30 action_director.options().set(
'disabled_actions', [
'a',
'b',
'c'])
32 cf_check(root.derived_type_name() ==
'cf3.common.Group',
'Derived type name of Root is not equal to \'cf3.common.Group\'')