[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful/tests -
test_instance.py:1.8.10.1
Jim Fulton
jim at zope.com
Mon Sep 8 15:22:25 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful/tests
In directory cvs.zope.org:/tmp/cvs-serv20092/src/zope/app/workflow/stateful/tests
Modified Files:
Tag: parentgeddon-branch
test_instance.py
Log Message:
Checking in work in progress on parentgeddon-branch so Fred can help
me to get the tests passing. Specific log entries will be provided
when we merge this into the head.
=== Zope3/src/zope/app/workflow/stateful/tests/test_instance.py 1.8 => 1.8.10.1 ===
--- Zope3/src/zope/app/workflow/stateful/tests/test_instance.py:1.8 Wed Jul 30 11:24:12 2003
+++ Zope3/src/zope/app/workflow/stateful/tests/test_instance.py Mon Sep 8 14:21:54 2003
@@ -32,8 +32,6 @@
from zope.security.checker import CheckerPublic
from zope.security.management import newSecurityManager
-from zope.app.context import ContextWrapper
-
from zope.app.interfaces.services.registration import IRegisterable
from zope.app.interfaces.services.registration import IRegistered
from zope.app.interfaces.annotation import IAttributeAnnotatable
@@ -53,6 +51,7 @@
from zope.app.workflow.stateful.instance \
import StatefulProcessInstance, StateChangeInfo
from zope.app import zapi
+from zope.app.container.contained import contained
# define and create ProcessDefinition (PD) for tests
@@ -110,7 +109,7 @@
self.pd = self.service.getProcessDefinition('definition1')
# give the pi some context to find a service
- self.pi = ContextWrapper(
+ self.pi = contained(
self.service.createProcessInstance('definition1'),
self.rootFolder)
# Let's also listen to the fired events
@@ -230,7 +229,7 @@
self.pd = self.service.getProcessDefinition('definition1')
# give the pi some context to find a service
- self.pi = ContextWrapper(
+ self.pi = contained(
self.service.createProcessInstance('definition1'),
self.rootFolder)
@@ -322,7 +321,7 @@
self.pd = self.service.getProcessDefinition('definition1')
# give the pi some context to find a service
- self.pi = ContextWrapper(
+ self.pi = contained(
self.service.createProcessInstance('definition1'),
self.rootFolder)
@@ -415,7 +414,7 @@
self.pd = self.service.getProcessDefinition('definition1')
# give the pi some context to find a service
- self.pi = ContextWrapper(
+ self.pi = contained(
self.service.createProcessInstance('definition1'),
self.rootFolder)
More information about the Zope3-Checkins
mailing list