else: assert len( dc.independents ) == numIndependants, "Expecting %(N)s independents but found %(F)s:\r\n%(E)s" % { "F": len(dc.independents), "N": len(numIndependants) } dc.independents.sort() indis.sort() # Check the independents: assert dc.independents == indis, "Different independent uIds: %(A)s to that expected: %(E)s" % { "A": dc.independents, "E": indis } # Check the maxDepth: maxDepth = Checker.maxDepth(dc.allHierarchies) depth = dc.depthMax assert maxDepth == depth assert maxDepth == eMaxDepth, "Max depth: %(A)s is different to that expected: %(E)s" % { "A": maxDepth, "E": eMaxDepth } return (items, dc.independents, dc.allHierarchies, dc.dependencyMap) def testUnsatisfiedDependency(self): items = [] numIndependants = 3 numUnsatisfied = 6 indis = [] for _i in range(0, numIndependants):