[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful/tests -
test_definition.py:1.3
Jim Fulton
jim at zope.com
Sun Sep 21 13:34:01 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful/tests
In directory cvs.zope.org:/tmp/cvs-serv15760/src/zope/app/workflow/stateful/tests
Modified Files:
test_definition.py
Log Message:
Changed to use __setitem__ rather than setObject
=== Zope3/src/zope/app/workflow/stateful/tests/test_definition.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/workflow/stateful/tests/test_definition.py:1.2 Fri Jun 6 15:29:07 2003
+++ Zope3/src/zope/app/workflow/stateful/tests/test_definition.py Sun Sep 21 13:34:00 2003
@@ -24,7 +24,7 @@
from zope.app.interfaces.workflow.stateful import IStatefulProcessDefinition
from zope.app.workflow.stateful.definition import StatefulProcessDefinition
-
+from zope.app.tests.placelesssetup import PlacelessSetup
class IDummyState(Interface):
"""A really dummy state"""
@@ -50,9 +50,10 @@
# Transition Class/Interface
-class StatefulProcessDefinitionTests(unittest.TestCase):
+class StatefulProcessDefinitionTests(PlacelessSetup, unittest.TestCase):
def setUp(self):
+ PlacelessSetup.setUp(self)
self.pd = pd = StatefulProcessDefinition()
self.doMinimalSetup()
@@ -133,9 +134,11 @@
def tobedone_testCreateProcessInstance(self):
pass
-class StatefulProcessDefinitionAttributesTests(unittest.TestCase):
+class StatefulProcessDefinitionAttributesTests(PlacelessSetup,
+ unittest.TestCase):
def setUp(self):
+ PlacelessSetup.setUp(self)
self.pd = pd = StatefulProcessDefinition()
self.doMinimalSetup()
@@ -143,13 +146,13 @@
pd = self.pd
self.st1 = st1 = DummyState()
self.st2 = st2 = DummyState()
- pd.states.setObject('st1', st1)
- pd.states.setObject('st2', st2)
+ pd.states['st1'] = st1
+ pd.states['st2'] = st2
self.tr1 = tr1 = DummyTransition()
self.tr2 = tr2 = DummyTransition()
- pd.transitions.setObject('tr1', tr1)
- pd.transitions.setObject('tr2', tr2)
+ pd.transitions['tr1'] = tr1
+ pd.transitions['tr2'] = tr2
def testInterface(self):
verifyClass(IStatefulProcessDefinition, StatefulProcessDefinition)
More information about the Zope3-Checkins
mailing list