def __call__(self, test): newState = self.testComparisonClass(test.state, test.app) newState.computeFor(test, ignoreMissing=self.ignoreMissing) import colorer if self.enableColor and not test.state.hasFailed(): colorer.enableOutputColor(colorer.GREEN) self.describe(test, newState.getPostText()) colorer.disableOutputColor() else: self.describe(test, newState.getPostText())
def printTestWithColorEnabled(self, test, color): colorer.enableOutputColor(color) self.describe(test) colorer.disableOutputColor()
def printTestWithColorEnabled(self, test, color, summary): colorer.enableOutputColor(color) self.describe(test, summary) colorer.disableOutputColor()