Пример #1
0
 def section(self, label, name, nl=True):
     if name:
         line = "\n{label}: {name}".format(label=label.upper(),name=name)
         line += '\n' if nl else ''
         color_print(line,fore=WHITE.bold())
     elif nl:
         print
Пример #2
0
    def log_test(self, label, results):
        line = "{label}: {name}".format(label=label,name=results.name)
        color_print(line,fore=WHITE.bold())

        if results:
            Printer._print_status(results)
            Printer._print_results(results)
        else:
            Printer._print_no_asserts()

        print
Пример #3
0
 def title(self, title):
     color_print("\n\n{0}".format(title.upper()),fore=WHITE.bold())