[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Workflow/tests - testWorkflowService.py:1.2.24.5

Florent Guillaume fg@nuxeo.com
Thu, 5 Dec 2002 08:28:43 -0500


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

Modified Files:
      Tag: sprintathon-wf-branch
	testWorkflowService.py 
Log Message:
Added views for the PD and PD configuration object.
The tests pass.
It's now possible to manipulate these things from the ZMI.


=== Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowService.py 1.2.24.4 => 1.2.24.5 ===
--- Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowService.py:1.2.24.4	Thu Dec  5 05:40:08 2002
+++ Zope3/lib/python/Zope/App/Workflow/tests/testWorkflowService.py	Thu Dec  5 08:28:42 2002
@@ -124,14 +124,14 @@
         self.assertEqual(self.pd2, self.ws.getProcessDefinition('pd2_name'))
 
     def testGetProcessDefinitonNames(self):
-        pd1_name, pd2_name = self.ws.getProcessDefinitionNames()
-
-        self.assertEqual(pd1_name, 'pd1_name')
-        self.assertEqual(pd2_name, 'pd2_name')
+        names = list(self.ws.getProcessDefinitionNames())
+        names = names.sort()
+        oknames = ['pd1_name', 'pd2_name']
+        oknames = oknames.sort()
+        self.assertEqual(names, oknames)
 
     def testCreateProcessInstance(self):
         pi = self.ws.createProcessInstance('pd1_name')
-
         self.assertEqual(pi, 'dummy_pi')