Code

- using Zope3's test runner now, allowing GC checks, nicer controls and
[roundup.git] / test / test_schema.py
index 051b07d9d562f8c649bc2daf878a71f4d73943fb..d6c9e6455057ceeb3f8b684664af5f34499b301e 100644 (file)
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: test_schema.py,v 1.12 2002-09-20 05:08:00 richard Exp $ 
+# $Id: test_schema.py,v 1.13 2003-10-25 22:53:26 richard Exp $ 
 
 import unittest, os, shutil
 
@@ -85,8 +85,14 @@ class SchemaTestCase(unittest.TestCase):
         user.setkey("username")
 
 
-def suite():
-   return unittest.makeSuite(SchemaTestCase, 'test')
+def test_suite():
+    suite = unittest.TestSuite()
+    suite.addTest(unittest.makeSuite(SchemaTestCase))
+    return suite
+
+if __name__ == '__main__':
+    runner = unittest.TextTestRunner()
+    unittest.main(testRunner=runner)
 
 
 # vim: set filetype=python ts=4 sw=4 et si