[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/tests - testPathIndex.py:1.2.4.2

Andreas Jung andreas@zope.com
Tue, 4 Sep 2001 11:20:48 -0400


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/tests
In directory cvs.zope.org:/tmp/cvs-serv26768/lib/python/Products/PluginIndexes/tests

Modified Files:
      Tag: Zope-2_4-branch
	testPathIndex.py 
Log Message:
PathIndex queries now take an optional 'level' parameter on the
query level



=== Zope/lib/python/Products/PluginIndexes/tests/testPathIndex.py 1.2.4.1 => 1.2.4.2 ===
                 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()