Unit Tests

- Added a 'diag' method to the Python test class.
This commit is contained in:
Paul Beckingham 2014-07-03 17:38:41 -04:00
parent 7a37317526
commit 5e1f596200

View file

@ -159,5 +159,13 @@ class BaseTestCase(unittest.TestCase):
assert out[0] != 0, "Task finished with zero exit (0) code" assert out[0] != 0, "Task finished with zero exit (0) code"
return out return out
@classmethod
def diag(cls, out):
"""Diagnostics are just lines preceded with #.
"""
print '# --- diag start ---'
for line in out.split("\n"):
print '#', line
print '# --- diag end ---'
# vim: ai sts=4 et sw=4 # vim: ai sts=4 et sw=4