[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_utility.py:1.10

Sidnei da Silva sidnei at x3ng.com.br
Wed Aug 6 10:03:27 EDT 2003


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

Modified Files:
	test_utility.py 
Log Message:
++etc++Services is no longer

=== Zope3/src/zope/app/services/tests/test_utility.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/services/tests/test_utility.py:1.9	Sat Jun 21 17:22:13 2003
+++ Zope3/src/zope/app/services/tests/test_utility.py	Wed Aug  6 09:03:21 2003
@@ -54,19 +54,19 @@
         self.name = name
         self._usages = []
         self._dependents = []
-        
+
     def foo(self):
         return 'foo ' + self.name
-    
+
     def addUsage(self, location):
         "See zope.app.interfaces.services.registration.IRegistered"
         if location not in self._usages:
             self._usages.append(location)
-    
+
     def removeUsage(self, location):
         "See zope.app.interfaces.services.registration.IRegistered"
         self._usages.remove(location)
-            
+
     def usages(self):
         "See zope.app.interfaces.services.registration.IRegistered"
         return self._usages
@@ -140,9 +140,9 @@
 
     def test_registrationsFor_methods(self):
         utilities = getService(self.rootFolder, "Utilities")
-        default = traverse(self.rootFolder, "++etc++Services/default")
+        default = traverse(self.rootFolder, "++etc++site/default")
         default.setObject('foo', Foo("local"))
-        path = "/++etc++Services/default/foo"
+        path = "/++etc++site/default/foo"
 
         for name in ('', 'bob'):
             registration = utility.UtilityRegistration(name, IFoo, path)
@@ -160,9 +160,9 @@
                                             name="bob")
 
         utilities = getService(self.rootFolder, "Utilities")
-        default = traverse(self.rootFolder, "++etc++Services/default")
+        default = traverse(self.rootFolder, "++etc++site/default")
         default.setObject('foo', Foo("local"))
-        path = "/++etc++Services/default/foo"
+        path = "/++etc++site/default/foo"
         cm = default.getRegistrationManager()
 
         for name in ('', 'bob'):
@@ -188,7 +188,7 @@
         utilities = getService(self.rootFolder, "Utilities")
         r = list(utilities.getRegisteredMatching())
         r.sort()
-        path = "/++etc++Services/default/foo"
+        path = "/++etc++site/default/foo"
         cr1 = utilities.queryRegistrationsFor(
             utility.UtilityRegistration("", IFoo, path))
         cr2 = utilities.queryRegistrationsFor(




More information about the Zope3-Checkins mailing list