Support multiple test modules.

This commit is contained in:
William Grant
2011-03-16 23:03:52 +11:00
parent 6ceace530e
commit 9aea8985fb
4 changed files with 35 additions and 4 deletions
+3 -2
View File
@@ -112,5 +112,6 @@ class TestParseTagValue(unittest.TestCase):
parse_tag_value, 'foo=bar;foo=baz')
if __name__ == '__main__':
unittest.main()
def test_suite():
from unittest import TestLoader
return TestLoader().loadTestsFromName(__name__)