taskwarrior/test/basetest/testing.py
Renato Alves ea5186716e Unittest - Example of TAP diag use in template.t
* Also prettify its output with the amazing whitespace
2014-07-15 03:02:47 +01:00

15 lines
328 B
Python

# -*- coding: utf-8 -*-
import unittest
import sys
class TestCase(unittest.TestCase):
def diag(self, out):
sys.stdout.write("# --- diag start ---\n")
for line in out.split("\n"):
sys.stdout.write("# " + line + "\n")
sys.stdout.write("# --- diag end ---\n")
# vim: ai sts=4 et sw=4