Log message for revision 37638:
  Merge from 37625 on trunk:
  
  Additional test. CMF requires this behaviour.
  
  

Changed:
  U   
Zope/branches/Zope-2_8-branch/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py

-=-
Modified: 
Zope/branches/Zope-2_8-branch/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
===================================================================
--- 
Zope/branches/Zope-2_8-branch/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
    2005-08-01 20:15:07 UTC (rev 37637)
+++ 
Zope/branches/Zope-2_8-branch/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
    2005-08-01 20:16:54 UTC (rev 37638)
@@ -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),

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to