[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests -
test_registrationstack.py:1.3
Jim Fulton
jim at zope.com
Sun Sep 21 13:33:24 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv15282/src/zope/app/services/tests
Modified Files:
test_registrationstack.py
Log Message:
No-longer use context wrappers or container adapters.
Changed to use __setitem__ rather than setObject
=== Zope3/src/zope/app/services/tests/test_registrationstack.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/tests/test_registrationstack.py:1.2 Wed Jul 2 15:43:32 2003
+++ Zope3/src/zope/app/services/tests/test_registrationstack.py Sun Sep 21 13:33:24 2003
@@ -20,7 +20,6 @@
from unittest import TestCase, TestSuite, main, makeSuite
from zope.app.services.tests.placefulsetup import PlacefulSetup
-from zope.app.context import ContextWrapper, getItem
from zope.app.services.registration import RegistrationStack
from zope.app.traversing import traverse
@@ -41,11 +40,11 @@
PlacefulSetup.setUp(self, site=True)
root = self.rootFolder
self.__default = traverse(root, "++etc++site/default")
- self.__registry = ContextWrapper(RegistrationStack(), root)
+ self.__registry = RegistrationStack(root)
def __config(self, name):
- self.__default.setObject(name, Registration())
- return getItem(self.__default, name)
+ self.__default[name] = Registration()
+ return self.__default[name]
def test_register_and_registered_and_nonzero_and_active(self):
registry = self.__registry
More information about the Zope3-Checkins
mailing list