[Zope3-checkins] CVS: Zope3/src/zope/app/index/tests - test_subscribers.py:1.3

Steve Alexander steve@cat-box.net
Wed, 19 Mar 2003 13:05:33 -0500


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

Modified Files:
	test_subscribers.py 
Log Message:
Changed the hubIds service / ObjectHub implementation to use unicode
strings for paths, rather than tuples of unicode strings.
This is part of the ongoing work Albert and I are doing to standardize on
unicode strings for paths.



=== Zope3/src/zope/app/index/tests/test_subscribers.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/index/tests/test_subscribers.py:1.2	Tue Mar 18 16:02:21 2003
+++ Zope3/src/zope/app/index/tests/test_subscribers.py	Wed Mar 19 13:05:02 2003
@@ -18,7 +18,7 @@
 
 from zope.app.index.subscribers import Registration
 from zope.app.services.tests.placefulsetup import PlacefulSetup
-from zope.app.traversing import traverse, locationAsTuple
+from zope.app.traversing import traverse, locationAsUnicode as canonicalPath
 from zope.app.event.objectevent import ObjectAddedEvent
 from zope.component import getService
 from zope.app.services.servicenames import EventPublication, HubIds
@@ -51,7 +51,7 @@
         content = object()
         name = 'blah'
 
-        event = ObjectAddedEvent(content, locationAsTuple('/%s' %(name,)))
+        event = ObjectAddedEvent(content, canonicalPath('/%s' % name))
         self.events.publish(event)
         self.assertEqual(self.hub.numRegistrations(), 1)