...
Code Block | ||||
---|---|---|---|---|
| ||||
task = Task("ttask") t = Trigger(["a","b",task]) # because Task("ftask") does *NOT* have a parent, we will use the name assert str(t) == "a == complete AND b == complete AND t == complete","Trigger not as expected: " + str(t)) defs = Defs() task = defs.add_suite("s").add_family("f").add_task("t") t = Trigger(["a","b",task]) # Task('t') has a parent hierarchy, hence we use full path in trigger expression assert str(t) == "a == complete AND b == complete AND /s/f/t == complete","Trigger not as expected: " + str(t)) |
...