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

Steve Alexander steve@cat-box.net
Thu, 5 Jun 2003 08:03:51 -0400


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

Modified Files:
	test_instance.py 
Log Message:
Placeful setup for tests now sets up a  ZopeContainerDecorator.
This means that in such tests, you no longer need to use
ZopeContainerAdapter to get the correct events issued, and perform context-
wrapping duties, when you use a container.
However, it does mean that your tests need to expect these events and
context-wrappers to be used.



=== Zope3/src/zope/app/workflow/stateful/tests/test_instance.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/workflow/stateful/tests/test_instance.py:1.5	Tue Jun  3 18:46:23 2003
+++ Zope3/src/zope/app/workflow/stateful/tests/test_instance.py	Thu Jun  5 08:03:20 2003
@@ -34,6 +34,7 @@
 from zope.app.context import ContextWrapper
 
 from zope.app.interfaces.services.configuration import IUseConfigurable
+from zope.app.interfaces.services.configuration import IUseConfiguration
 from zope.app.interfaces.annotation import IAttributeAnnotatable
 from zope.app.interfaces.services.configuration import Active
 
@@ -50,8 +51,11 @@
 
 # define and create ProcessDefinition (PD) for tests
 class TestProcessDefinition(StatefulProcessDefinition):
-    implements(IAttributeAnnotatable, IUseConfigurable)
+    implements(IAttributeAnnotatable, IUseConfigurable, IUseConfiguration)
 
+    # Incompletely implementing IUseConfiguration
+    def addUsage(self, location):
+        pass
 
 class ITestDataSchema(Interface):