[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Workflow/tests - testWorkflowAction.py:1.1.2.11 testWorkflowActivityInfo.py:1.1.2.3 testWorkflowEngine.py:1.1.2.2 testWorkflowProcessInstance.py:1.1.2.3 testWorkflowService.py:1.1.2.2 testWorkflowWorkitem.py:1.1.2.3

Tres Seaver tseaver@zope.com
Fri, 8 Mar 2002 15:38:56 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv24501/lib/python/Zope/App/Workflow/tests

Modified Files:
      Tag: Zope-3x-branch
	testWorkflowAction.py testWorkflowActivityInfo.py 
	testWorkflowEngine.py testWorkflowProcessInstance.py 
	testWorkflowService.py testWorkflowWorkitem.py 
Log Message:
 - Add 'test_suite' so Jeremy's test harness won't puke.

=== Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowAction.py 1.1.2.10 => 1.1.2.11 ===
 
 
+def test_suite():
+
+    suite = unittest.TestSuite()
+    for klass in ( WorkflowActionCreatedTests
+                 , WorkflowActionAssignedEventTest
+                 , WorkflowActionBegunEventTest
+                 , WorkflowActionSuspendedTests
+                 , WorkflowActionCompletedEvent
+                 , WorkflowActionExceptionEvent
+                 ):
+        suite.addTest(
+            unittest.defaultTestLoader.loadTestsFromTestCase( klass ) )
+    return suite
 
 
 if __name__ == '__main__':


=== Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowActivityInfo.py 1.1.2.2 => 1.1.2.3 ===
 from Interface.Verify import verifyClass
 
-class WorkflowActivityInfo(unittest.TestCase):
+class WorkflowActivityInfoTests(unittest.TestCase):
 
     def testInterface(self):
-        from Zope.App.Workflow.IWorkflowActivityInfo import IWorkflowActivityInfo
-        from Zope.App.Workflow.WorkflowActivityInfo import WorkflowActivityInfo
+        from Zope.App.Workflow.IWorkflowActivityInfo \
+            import IWorkflowActivityInfo
+        from Zope.App.Workflow.WorkflowActivityInfo \
+            import WorkflowActivityInfo
 
         verifyClass(IWorkflowActivityInfo, WorkflowActivityInfo)
 
@@ -88,6 +90,14 @@
         self.assertEqual(ai.getRoles(), roles)
         self.assertEqual(ai.getCondition(), condition)
         self.assertEqual(ai.getSource(), source)
+
+def test_suite():
+
+    suite = unittest.TestSuite()
+    suite.addTest(
+        unittest.defaultTestLoader.loadTestsFromTestCase(
+            WorkflowActivityInfoTests ) )
+    return suite
 
 if __name__ == '__main__':
     unittest.main()


=== Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowEngine.py 1.1.2.1 => 1.1.2.2 ===
 
  
-class WorkflowEngineTest( unittest.TestCase ):
+class WorkflowEngineTests( unittest.TestCase ):
 
     def testInterface( self ):
         from Zope.App.Workflow.IWorkflowEngine import IWorkflowEngine
@@ -11,6 +11,14 @@
         verifyClass( IWorkflowEngine, WorkflowEngine )
 
 
+
+def test_suite():
+
+    suite = unittest.TestSuite()
+    suite.addTest(
+        unittest.defaultTestLoader.loadTestsFromTestCase(
+            WorkflowEngineTests ) )
+    return suite
 
 
 


=== Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowProcessInstance.py 1.1.2.2 => 1.1.2.3 ===
     def testInterface( self ):
         from Interface.Verify import verifyClass
-        from Zope.App.Workflow.IWorkflowProcessInstance import IWorkflowProcessInstance
-        from Zope.App.Workflow.WorkflowProcessInstance import WorkflowProcessInstance
+        from Zope.App.Workflow.IWorkflowProcessInstance \
+            import IWorkflowProcessInstance
+        from Zope.App.Workflow.WorkflowProcessInstance \
+            import WorkflowProcessInstance
 
         verifyClass( IWorkflowProcessInstance, WorkflowProcessInstance )
 
+
+def test_suite():
+
+    suite = unittest.TestSuite()
+    suite.addTest(
+        unittest.defaultTestLoader.loadTestsFromTestCase(
+            WorkflowProcessInstanceTests ) )
+    return suite
 
 
 


=== Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowService.py 1.1.2.1 => 1.1.2.2 ===
         return [0, 1, 2]
     
-class WorkflowService( unittest.TestCase ):
-
+class WorkflowServiceTests( unittest.TestCase ):
 
     def createService( self ):
         from Zope.App.Workflow.WorkflowService import WorkflowService
@@ -50,8 +49,17 @@
         service = self.createService()
         engine = dummyEngine()
         service.addEngine(engine)
-        self.assertEqual(service.listWorkflowEngineActions(), engine.listActions())
-        
+        self.assertEqual(service.listWorkflowEngineActions(),
+                         engine.listActions())
+ 
+
+def test_suite():
+
+    suite = unittest.TestSuite()
+    suite.addTest(
+        unittest.defaultTestLoader.loadTestsFromTestCase(
+            WorkflowServiceTests ) )
+    return suite
 
 if __name__ == '__main__':
     unittest.main()


=== Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowWorkitem.py 1.1.2.2 => 1.1.2.3 ===
 
 
+def test_suite():
+
+    suite = unittest.TestSuite()
+    suite.addTest(
+        unittest.defaultTestLoader.loadTestsFromTestCase(
+            WorkflowWorkitemTests ) )
+    return suite
+
 if __name__ == '__main__':
     unittest.main()