Unittest - Example of TAP diag use in template.t

* Also prettify its output with the amazing whitespace
This commit is contained in:
Renato Alves 2014-07-15 03:02:47 +01:00
parent e3d0d2ff34
commit ea5186716e
2 changed files with 4 additions and 1 deletions

View file

@ -8,7 +8,7 @@ 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("# " + line + "\n")
sys.stdout.write("# --- diag end ---\n")