[Zope-Checkins] CVS: Products/PluginIndexes/tests - testPathIndex.py:1.4
Andreas Jung
andreas@zope.com
Mon, 27 Aug 2001 21:23:31 -0400
Update of /cvs-repository/Products/PluginIndexes/tests
In directory cvs.zope.org:/tmp/cvs-serv19793/tests
Modified Files:
testPathIndex.py
Log Message:
added test for new optional level parameter inside tuple (path,level)
=== Products/PluginIndexes/tests/testPathIndex.py 1.3 => 1.4 ===
lst = list(res[0].keys())
assert lst==results,res
+
+ for comp,level,results in tests:
+ for path in [comp,"/"+comp,"/"+comp+"/"]:
+ res = self._index._apply_index({"path":{'query':( (path,level),)}})
+ lst = list(res[0].keys())
+ assert lst==results,res
framework()