[Zope-CVS] CVS: Packages3/workflow/stateful/tests - test_instance.py:1.6

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


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

Modified Files:
	test_instance.py 
Log Message:
Reenabled the permission checking test, now that the permission
checking has been fixed.

Also changed the way the test suite was set up, since the way it was
set didn't work for me.


=== Packages3/workflow/stateful/tests/test_instance.py 1.5 => 1.6 ===
--- Packages3/workflow/stateful/tests/test_instance.py:1.5	Fri Feb  7 16:50:53 2003
+++ Packages3/workflow/stateful/tests/test_instance.py	Sat Feb  8 11:54:30 2003
@@ -294,7 +294,7 @@
 
 
 
-    def DISABLED_testPermissionedTranstitions(self):
+    def testPermissionedTranstitions(self):
         pi = self.pi
         pd = self.pd
 
@@ -328,11 +328,12 @@
 
 
 def test_suite():
-    suite = unittest.TestSuite()
-    suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(
-        SimpleProcessInstanceTests, ConditionProcessInstanceTests,
-        PermissionProcessInstanceTests, TestStateChangeInfo))
-    return suite
+    return unittest.TestSuite((
+        unittest.makeSuite(SimpleProcessInstanceTests),
+        unittest.makeSuite(ConditionProcessInstanceTests),
+        unittest.makeSuite(PermissionProcessInstanceTests),
+        unittest.makeSuite(TestStateChangeInfo),
+        ))
 
 if __name__ == '__main__':
     unittest.main()