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