def addSuccess(self, test): unittest.TestResult.addSuccess(self, test) if self.showAll: self.stream.writeln(colors.green("ok")) elif self.dots: self.stream.write(colors.green(".")) self.stream.flush()
def random_happy(): return colors.green(choice(happy_messages))
def print_success_line(self, test): line = green('ok-dokey ') + self.get_elapsed_line(test) self.stream.writeln(line)