adding __name__ == "__main__" magic to run test suite with just unittest

This commit is contained in:
Dan Buch 2009-11-25 20:54:37 -05:00
parent 5023469466
commit 1b94d6a463

View File

@ -28,3 +28,7 @@ class TestOneTimePad(unittest.TestCase):
else:
self.assertFalse(bool(len(line)),
'line {0} is empty'.format(lineno))
if __name__ == '__main__':
unittest.main()