X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=test%2Ftest_token.py;h=505a0c816a79012b6dfeeac975090216803b977a;hb=9976de4f1761b47dc459f10c4b28c311de84e103;hp=60a06bea97f98032f7669f0fae9dd828108fbf4c;hpb=8dd370cca99658a1aacf7c5baaa0078bbac9d446;p=roundup.git diff --git a/test/test_token.py b/test/test_token.py index 60a06be..505a0c8 100644 --- a/test/test_token.py +++ b/test/test_token.py @@ -8,7 +8,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_token.py,v 1.1 2001-12-31 05:09:20 richard Exp $ +# $Id: test_token.py,v 1.3 2003-10-25 22:53:26 richard Exp $ import unittest, time @@ -49,12 +49,13 @@ class TokenTestCase(unittest.TestCase): self.assertRaises(ValueError, token_split, '"hello world') self.assertRaises(ValueError, token_split, "Roch'e Compaan") -def suite(): - return unittest.makeSuite(TokenTestCase, 'test') +def test_suite(): + suite = unittest.TestSuite() + suite.addTest(unittest.makeSuite(TokenTestCase)) + return suite +if __name__ == '__main__': + runner = unittest.TextTestRunner() + unittest.main(testRunner=runner) -# -# $Log: not supported by cvs2svn $ -# -# # vim: set filetype=python ts=4 sw=4 et si