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

andreas@digicool.com andreas@digicool.com
Wed, 16 May 2001 16:11:50 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/tests
In directory korak.digicool.com:/tmp/cvs-serv5633

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




--- Updated File testPathIndex.py in package Zope2 --
--- testPathIndex.py	2001/05/16 20:01:05	1.1.2.1
+++ testPathIndex.py	2001/05/16 20:11:49	1.1.2.2
@@ -94,6 +94,7 @@
 import ZODB
 import unittest
 from Products.PluginIndexes.PathIndex.PathIndex import PathIndex
+import string
 
 class Dummy:
 
@@ -102,7 +103,7 @@
         self.path = path
 
     def getPhysicalPath(self):
-        return self.path
+        return string.split(self.path,'/')
 
     
     def __str__( self ):
@@ -149,7 +150,8 @@
         for k, v in self._values.items():
             self._index.index_object( k, v )
 
-    
+        print self._index.items()
+ 
     def testEmpty( self ):
         "Test an empty FieldIndex."
 
@@ -162,6 +164,8 @@
     def testPopulateIndex( self ):
 
         self._populateIndex()
+
+        self._index._apply_index( {"path":"aa","path_level":0})
 
         
 def test_suite():