...
Code Block |
---|
from ecflow import * defs = Defs( [ Suite("s{0}".format(i), [ Family("f{0}".format(i), [ Task("t{0}".format(i)) for i in range(1,6)] ) for i in range(1,6)] ) for i in range(1,6) ] ) assert(len(defs)==5, " expected 5 suites but found " + str(len(defs))) for suite in defs: assert(len(suite)==5, " expected 5 familesfamilies but found " + str(len(suite))) for fam in suite: assert(len(fam)==5, " expected 5 tasks but found " + str(len(fam))) |
...