[Zope-CVS] CVS: Packages3/workflow/stateful/tests - test_definition.py:1.5

Jim Fulton jim@zope.com
Sat, 8 Feb 2003 11:57:34 -0500


Update of /cvs-repository/Packages3/workflow/stateful/tests
In directory cvs.zope.org:/tmp/cvs-serv30464/stateful/tests

Modified Files:
	test_definition.py 
Log Message:
Changed the way the tests suites are set up, since the tests wouldn't
run for me otherwise.


=== Packages3/workflow/stateful/tests/test_definition.py 1.4 => 1.5 ===
--- Packages3/workflow/stateful/tests/test_definition.py:1.4	Fri Feb  7 10:29:30 2003
+++ Packages3/workflow/stateful/tests/test_definition.py	Sat Feb  8 11:57:03 2003
@@ -205,10 +205,10 @@
 
 
 def test_suite():
-    suite = unittest.TestSuite()
-    suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(
-        StatefulProcessDefinitionTests, StatefulProcessDefinitionAttributesTests))
-    return suite
+    return unittest.TestSuite((
+        unittest.makeSuite(StatefulProcessDefinitionTests),
+        unittest.makeSuite(StatefulProcessDefinitionAttributesTests),
+        ))
 
 if __name__ == '__main__':
     unittest.main()