[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testTraverser.py:1.1.2.7
Jim Fulton
jim@zope.com
Tue, 12 Feb 2002 18:06:28 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv21714/tests
Modified Files:
Tag: Zope-3x-branch
testTraverser.py
Log Message:
Added support for unicode paths.
=== Zope3/lib/python/Zope/App/Traversing/tests/testTraverser.py 1.1.2.6 => 1.1.2.7 ===
self.assertEquals(tr.unrestrictedTraverse('/folder/item/'), item)
+ def testSimplePathUnicode(self):
+ tr = self.tr
+ item = self.item
+
+ self.assertEquals(tr.unrestrictedTraverse(u'/folder/item'), item)
+ self.assertEquals(tr.unrestrictedTraverse(u'folder/item'), item)
+ self.assertEquals(tr.unrestrictedTraverse(u'/folder/item/'), item)
+
def testSimplePathTuple(self):
tr = self.tr
item = self.item