[Zope3-checkins] CVS: Zope3/src/zope/app/utilities/tests -
test_content.py:1.3.6.1 test_interfaceutility.py:1.4.6.2
Jim Fulton
jim at zope.com
Fri Sep 12 15:16:09 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/utilities/tests
In directory cvs.zope.org:/tmp/cvs-serv13470/src/zope/app/utilities/tests
Modified Files:
Tag: parentgeddon-branch
test_content.py test_interfaceutility.py
Log Message:
Can't have the tests passing, can we?
=== Zope3/src/zope/app/utilities/tests/test_content.py 1.3 => 1.3.6.1 ===
--- Zope3/src/zope/app/utilities/tests/test_content.py:1.3 Mon Aug 18 14:55:40 2003
+++ Zope3/src/zope/app/utilities/tests/test_content.py Fri Sep 12 15:15:38 2003
@@ -77,13 +77,13 @@
classImplements(ContentComponentDefinition, ILocalUtility)
classImplements(ContentComponentDefinition, IAttributeAnnotatable)
default = zapi.traverse(mgr, 'default')
- default.setObject('TestDoc', ContentComponentDefinition())
+ default['TestDoc'] = ContentComponentDefinition()
# Setup Definition Registration
path = "%s/default/%s" % (zapi.getPath(mgr), 'TestDoc')
reg = ContentComponentDefinitionRegistration(
'TestDoc', IContentComponentDefinition, path)
- key = default.getRegistrationManager().setObject("", reg)
+ key = default.getRegistrationManager().addRegistration(reg)
self.reg = zapi.traverse(default.getRegistrationManager(), key)
def tearDown(self):
@@ -128,7 +128,7 @@
setup.addService(self.mgr, Utilities, LocalUtilityService())
ccd = ContentComponentDefinition('TestDoc', IDocument)
self.default = zapi.traverse(self.mgr, 'default')
- self.default.setObject('Document', ccd)
+ self.default['Document'] = ccd
ccd = zapi.traverse(self.default, 'Document')
self.mi = ContentComponentDefinitionMenuItem(ccd)
=== Zope3/src/zope/app/utilities/tests/test_interfaceutility.py 1.4.6.1 => 1.4.6.2 ===
--- Zope3/src/zope/app/utilities/tests/test_interfaceutility.py:1.4.6.1 Mon Sep 8 14:21:52 2003
+++ Zope3/src/zope/app/utilities/tests/test_interfaceutility.py Fri Sep 12 15:15:38 2003
@@ -225,7 +225,7 @@
def test_registrationsFor_methods(self):
utilities = getService(self.rootFolder, Utilities)
default = traverse(self.rootFolder, "++etc++site/default")
- default.setObject('foo', Foo("local"))
+ default['foo'] = Foo("local")
path = "/++etc++site/default/foo"
for name in ('', 'bob'):
@@ -245,13 +245,13 @@
utilities = getService(self.rootFolder, Utilities)
default = traverse(self.rootFolder, "++etc++site/default")
- default.setObject('foo', Foo("local"))
+ default['foo'] = Foo("local")
path = "/++etc++site/default/foo"
cm = default.getRegistrationManager()
for name in ('', 'bob'):
registration = utility.UtilityRegistration(name, IInterface, path)
- cname = cm.setObject('', registration)
+ cname = cm.addRegistration(registration)
registration = traverse(cm, cname)
gout = name and "foo global "+name or "foo global"
More information about the Zope3-Checkins
mailing list