[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful/tests - test_instance.py:1.8.10.2

Jim Fulton jim at zope.com
Tue Sep 9 15:08:53 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful/tests
In directory cvs.zope.org:/tmp/cvs-serv4989/src/zope/app/workflow/stateful/tests

Modified Files:
      Tag: parentgeddon-branch
	test_instance.py 
Log Message:
got more tests to pass on branch

=== Zope3/src/zope/app/workflow/stateful/tests/test_instance.py 1.8.10.1 => 1.8.10.2 ===
--- Zope3/src/zope/app/workflow/stateful/tests/test_instance.py:1.8.10.1	Mon Sep  8 14:21:54 2003
+++ Zope3/src/zope/app/workflow/stateful/tests/test_instance.py	Tue Sep  9 14:08:22 2003
@@ -102,16 +102,16 @@
 
         self.default.setObject('pd1', pd )
 
-        self.cm.setObject('', ProcessDefinitionRegistration('definition1',
-                                '/++etc++site/default/pd1'))
+        name = self.cm.setObject(
+            '',
+            ProcessDefinitionRegistration('definition1',
+                                          '/++etc++site/default/pd1'))
         zapi.traverse(self.default.getRegistrationManager(),
-                      '2').status = ActiveStatus
+                      name).status = ActiveStatus
 
         self.pd = self.service.getProcessDefinition('definition1')
         # give the pi some context to find a service
-        self.pi = contained(
-            self.service.createProcessInstance('definition1'),
-            self.rootFolder)
+        self.pi = self.service.createProcessInstance('definition1')
         # Let's also listen to the fired events
         clearEvents()
         eventPublisher.globalSubscribe(EventRecorder)
@@ -223,9 +223,11 @@
 
         self.default.setObject('pd1', pd )
 
-        self.cm.setObject('', ProcessDefinitionRegistration('definition1',
-                                '/++etc++site/default/pd1'))
-        zapi.traverse(self.default.getRegistrationManager(), '2').status = ActiveStatus
+        n = self.cm.setObject(
+            '', ProcessDefinitionRegistration('definition1',
+                                              '/++etc++site/default/pd1'))
+        zapi.traverse(self.default.getRegistrationManager(), n
+                      ).status = ActiveStatus
 
         self.pd = self.service.getProcessDefinition('definition1')
         # give the pi some context to find a service




More information about the Zope3-Checkins mailing list