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