[Zope-Checkins]
SVN: Zope/trunk/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
Additional test. CMF requires this behaviour.
Florent Guillaume
fg at nuxeo.com
Mon Aug 1 12:02:50 EDT 2005
Log message for revision 37625:
Additional test. CMF requires this behaviour.
Changed:
U Zope/trunk/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
-=-
Modified: Zope/trunk/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
===================================================================
--- Zope/trunk/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py 2005-08-01 15:13:08 UTC (rev 37624)
+++ Zope/trunk/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py 2005-08-01 16:02:49 UTC (rev 37625)
@@ -216,7 +216,18 @@
lst = list(res[0].keys())
self.assertEqual(lst,results)
+ def testQueryPathReturnedInResult(self):
+ index = self._index
+ index.index_object(1, Dummy("/ff"))
+ index.index_object(2, Dummy("/ff/gg"))
+ index.index_object(3, Dummy("/ff/gg/3.html"))
+ index.index_object(4, Dummy("/ff/gg/4.html"))
+ res = index._apply_index({'path': {'query': '/ff/gg'}})
+ lst = list(res[0].keys())
+ self.assertEqual(lst, [2, 3, 4])
+
+
def test_suite():
return unittest.TestSuite((
unittest.makeSuite(PathIndexTests),
More information about the Zope-Checkins
mailing list