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

@ -34,6 +34,9 @@ class TestBugNumber(TestCase):
expected = "Copyright \(C\) \d{4} - %d" % (datetime.now().year,)
self.assertRegexpMatches(out.decode("utf8"), expected)
# TAP diagnostics on the bas
self.diag("Yay TAP diagnostics")
def test_fail_other(self):
"""Nothing to do with Copyright"""
self.assertEqual("I like to code", "I like\nto code\n")