[Zope-Checkins] CVS: Zope2 - testPathIndex.py:1.1.2.5

andreas@serenade.digicool.com andreas@serenade.digicool.com
Thu, 17 May 2001 08:27:21 -0400


Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/tests
In directory serenade:/tmp/cvs-serv29678/tests

Modified Files:
      Tag: ajung-dropin-registry
	testPathIndex.py 
Log Message:
more tests



--- Updated File testPathIndex.py in package Zope2 --
--- testPathIndex.py	2001/05/17 12:12:56	1.1.2.4
+++ testPathIndex.py	2001/05/17 12:27:20	1.1.2.5
@@ -188,6 +188,15 @@
         res= self._index._apply_index( {"path":"/bb/cc","path_level":1})
         lst = list(res[0].keys())
         assert lst==[6,15],res
+
+        res= self._index._apply_index( {"path":"/bb/aa","path_level":0})
+        lst = list(res[0].keys())
+        assert lst==[10,11,12],res
+
+        res= self._index._apply_index( {"path":"/bb/aa","path_level":1})
+        lst = list(res[0].keys())
+        assert lst==[4,13],res
+
         
 def test_suite():
     return unittest.makeSuite( TestCase )