fron ecflow import ecflowDefs,Suite,Family,Task,Trigger
defs = ecflow.Defs().add(
Suite("dead_lock").add(,
Family("family").add('family',
Task("t1").add( 't1',
Trigger("t2 == complete")),
Task("t2").add( 't2',
Trigger("t1 == complete")))))
theResult = defs.simulate(); # simulate the definition
assert len(theResult) != 0, "Expected simulation to return errors"
print theResult |