Unittest - Example of TAP diag use in template.t
* Also prettify its output with the amazing whitespace
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user