[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Workflow/Stateful/tests - testProcessDefinition.py:1.1.2.3

Florent Guillaume fg@nuxeo.com
Thu, 5 Dec 2002 11:09:10 -0500


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

Modified Files:
      Tag: sprintathon-wf-branch
	testProcessDefinition.py 
Log Message:
Fix (dummy) implementation according to interface and make tests pass.


=== Zope3/lib/python/Zope/App/Workflow/Stateful/tests/testProcessDefinition.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/lib/python/Zope/App/Workflow/Stateful/tests/testProcessDefinition.py:1.1.2.2	Thu Dec  5 11:00:15 2002
+++ Zope3/lib/python/Zope/App/Workflow/Stateful/tests/testProcessDefinition.py	Thu Dec  5 11:09:08 2002
@@ -23,17 +23,22 @@
 from Interface.Verify import verifyClass
 
 from Zope.App.Workflow.Stateful.IProcessDefinition import IProcessDefinition
+from Zope.App.Workflow.Stateful.ProcessDefinition import ProcessDefinition
 
-
-class testProcessDefinition(unittest.TestCase):
+class ProcessDefinitionTests(unittest.TestCase):
 
     def setUp(self):
         pass
 
-    def testPass():
-        pass
-
     def testInterface(self):
-        verifyClass(IWorkflowService, WorkflowService)
+        verifyClass(IProcessDefinition, ProcessDefinition)
+
 
+def test_suite():
+    suite = unittest.TestSuite()
+    suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(
+        ProcessDefinitionTests))
+    return suite
 
+if __name__ == '__main__':
+    unittest.main()