[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_eventservice.py:1.30 test_presentation.py:1.4 test_registered.py:1.4 test_registrationmanager.py:1.6 test_serviceregistration.py:1.3 test_utility.py:1.12

Naveen P pnaveen at zeomega.com
Thu Dec 18 04:57:48 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv29648/services/tests

Modified Files:
	test_eventservice.py test_presentation.py test_registered.py 
	test_registrationmanager.py test_serviceregistration.py 
	test_utility.py 
Log Message:
Applied the containment constraints on the PluggableAuthorisationService, PrincipalSource, Registration Manager and Adapter Registration.


=== Zope3/src/zope/app/services/tests/test_eventservice.py 1.29 => 1.30 ===
--- Zope3/src/zope/app/services/tests/test_eventservice.py:1.29	Fri Nov 21 12:12:13 2003
+++ Zope3/src/zope/app/services/tests/test_eventservice.py	Thu Dec 18 04:57:15 2003
@@ -84,6 +84,8 @@
 class DumbObjectHub:
     implements(IObjectHub, ISimpleService)
 
+    __name__ = __parent__ = None
+    
     def __init__(self):
         # (location, object)
         self.lib = []


=== Zope3/src/zope/app/services/tests/test_presentation.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/services/tests/test_presentation.py:1.3	Thu Dec 18 01:09:44 2003
+++ Zope3/src/zope/app/services/tests/test_presentation.py	Thu Dec 18 04:57:15 2003
@@ -85,7 +85,7 @@
 class C: pass
 
 class PhonyTemplate:
-
+    __name__ = __parent__ = None
     implements(IZPTTemplate)
 
 class A:


=== Zope3/src/zope/app/services/tests/test_registered.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/services/tests/test_registered.py:1.3	Wed Sep 24 16:43:14 2003
+++ Zope3/src/zope/app/services/tests/test_registered.py	Thu Dec 18 04:57:15 2003
@@ -24,6 +24,9 @@
 from zope.app.container.contained import Contained
 
 class C(dict, Contained):
+
+    __name__ = __parent__ = None
+    
     implements(IAnnotations, ITraverser)
 
     def __init__(self, testobjs={}):


=== Zope3/src/zope/app/services/tests/test_registrationmanager.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/services/tests/test_registrationmanager.py:1.5	Thu Nov 27 08:59:26 2003
+++ Zope3/src/zope/app/services/tests/test_registrationmanager.py	Thu Dec 18 04:57:15 2003
@@ -29,6 +29,8 @@
 
 class Undeletable:
 
+    __name__ = __parent__ = None
+    
     implements(IRemoveNotifiable)
 
     def removeNotify(self, event):
@@ -360,6 +362,7 @@
         self.failUnless(thingy.was_called)
 
 class RegistrationManagerContainerTests(placefulsetup.PlacefulSetup):
+
 
     def test_getRegistrationManager(self):
         sm = self.buildFolders(site=True)


=== Zope3/src/zope/app/services/tests/test_serviceregistration.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/tests/test_serviceregistration.py:1.2	Sun Sep 21 13:33:25 2003
+++ Zope3/src/zope/app/services/tests/test_serviceregistration.py	Thu Dec 18 04:57:15 2003
@@ -40,8 +40,9 @@
     pass
 
 class TestServiceBase:
+    __name__ = __parent__ = None
     implements(ITestService, IBindingAware, IDependable)
-
+    
     _bound = _unbound = ()
 
     def bound(self, name):


=== Zope3/src/zope/app/services/tests/test_utility.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/services/tests/test_utility.py:1.11	Sun Sep 21 13:33:25 2003
+++ Zope3/src/zope/app/services/tests/test_utility.py	Thu Dec 18 04:57:15 2003
@@ -47,8 +47,9 @@
 class Foo:
     # We implement IRegistered and IDependable directly to
     # depend as little  as possible on other infrastructure.
+    __name__ = __parent__ = None
     implements(IFoo, ILocalUtility, IRegistered, IDependable)
-
+    
     def __init__(self, name):
         self.name = name
         self._usages = []




More information about the Zope3-Checkins mailing list