Example #1
0
 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 __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())
Example #3
0
 def printTestWithColorEnabled(self, test, color):
     colorer.enableOutputColor(color)
     self.describe(test)
     colorer.disableOutputColor()
Example #4
0
 def printTestWithColorEnabled(self, test, color, summary):
     colorer.enableOutputColor(color)
     self.describe(test, summary)
     colorer.disableOutputColor()