[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests -
test_registrationstatusproperty.py:1.3
test_servicemanager.py:1.15 test_view.py:1.22
Jim Fulton
jim at zope.com
Tue Sep 2 17:47:22 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv16881/src/zope/app/services/tests
Modified Files:
test_registrationstatusproperty.py test_servicemanager.py
test_view.py
Log Message:
Added ISite, which is a marker interface indicating that an object is
a site.
When an object is made into a site, ISite is declared for it.
Change to test whether something is a site by testing whether
it (declares it) implements ISite.
=== Zope3/src/zope/app/services/tests/test_registrationstatusproperty.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/tests/test_registrationstatusproperty.py:1.2 Sun Jun 22 20:31:31 2003
+++ Zope3/src/zope/app/services/tests/test_registrationstatusproperty.py Tue Sep 2 16:46:51 2003
@@ -85,7 +85,7 @@
def setUp(self):
PlacefulSetup.setUp(self, folders=True)
self.__sm = TestingServiceManager()
- self.rootFolder.setServiceManager(self.__sm)
+ self.rootFolder.setSiteManager(self.__sm)
def test_property(self):
=== Zope3/src/zope/app/services/tests/test_servicemanager.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/services/tests/test_servicemanager.py:1.14 Mon Jun 30 12:26:15 2003
+++ Zope3/src/zope/app/services/tests/test_servicemanager.py Tue Sep 2 16:46:51 2003
@@ -180,7 +180,7 @@
manager = cw(default['m2'], default, name='m2')
manager.execute()
- self.folder1.setServiceManager(ServiceManager())
+ self.folder1.setSiteManager(ServiceManager())
sm2=getServiceManager(self.folder1)
default = cw(sm2['default'], self.folder1, name='default')
default.setObject('m1', Manager('zope.app.services.tests.sample1',
=== Zope3/src/zope/app/services/tests/test_view.py 1.21 => 1.22 ===
--- Zope3/src/zope/app/services/tests/test_view.py:1.21 Fri Jul 4 09:28:19 2003
+++ Zope3/src/zope/app/services/tests/test_view.py Tue Sep 2 16:46:51 2003
@@ -235,7 +235,7 @@
def setUp(self):
PlacefulSetup.setUp(self)
self.rootFolder = RootFolder()
- self.rootFolder.setServiceManager(PhonyServiceManager())
+ self.rootFolder.setSiteManager(PhonyServiceManager())
default = traverse(self.rootFolder, '++etc++site/default')
self.__template = PhonyTemplate()
default.setObject('t', self.__template)
More information about the Zope3-Checkins
mailing list