taskwarrior/test/basetest/testing.py
Renato Alves d354d13263 Unittest - Bring back diag() for generating TAP output
* Still needs work to make sure output is displayed after the test
status (not ok ...) and not before.
2014-07-14 11:38:04 +01:00

15 lines
327 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