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

Andreas Jung andreas@digicool.com
Thu, 3 Oct 2002 09:45:21 -0400


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

Modified Files:
      Tag: Zope-2_6-branch
	testPathIndex.py 
Log Message:
The fix for Collector #593 has been lost for unknown reasons


=== Zope/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py 1.7.6.1 => 1.7.6.2 ===
--- Zope/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py:1.7.6.1	Mon Sep 23 12:50:08 2002
+++ Zope/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py	Thu Oct  3 09:45:20 2002
@@ -53,8 +53,8 @@
           14 : Dummy("/bb/bb/bb/14.html"),
           15 : Dummy("/bb/bb/cc/15.html"),
           16 : Dummy("/bb/cc/aa/16.html"),
-          17 : Dummy("/bb/cc/bb/17html"),
-          18 : Dummy("/bb/cc/cc/18html")
+          17 : Dummy("/bb/cc/bb/17.html"),
+          18 : Dummy("/bb/cc/cc/18.html")
         }
 
     def _populateIndex(self):
@@ -107,16 +107,21 @@
         self._populateIndex()
 
         tests = [
-            ("aa",0, [1,2,3,4,5,6,7,8,9]),
-            ("aa",1, [1,2,3,10,11,12] ),
-            ("bb",0, [10,11,12,13,14,15,16,17,18]),
-            ("bb",1, [4,5,6,13,14,15] ),
-            ("bb/cc",0, [16,17,18] ),
-            ("bb/cc",1, [6,15] ),
-            ("bb/aa",0, [10,11,12] ),
-            ("bb/aa",1, [4,13] ),
-            ("aa/cc",-1, [3,7,8,9,12] ),
-            ("bb/bb",-1, [5,13,14,15] )
+            ("aa", 0, [1,2,3,4,5,6,7,8,9]),
+            ("aa", 1, [1,2,3,10,11,12] ),
+            ("bb", 0, [10,11,12,13,14,15,16,17,18]),
+            ("bb", 1, [4,5,6,13,14,15] ),
+            ("bb/cc", 0, [16,17,18] ),
+            ("bb/cc", 1, [6,15] ),
+            ("bb/aa", 0, [10,11,12] ),
+            ("bb/aa", 1, [4,13] ),
+            ("aa/cc", -1, [3,7,8,9,12] ),
+            ("bb/bb", -1, [5,13,14,15] ),
+            ("18.html", 3, [18] ),
+            ("18.html", -1, [18] ),
+            ("cc/18.html", -1, [18] ),
+            ("cc/18.html", 2, [18] ),
+
         ]
 
         for comp,level,results in tests:
@@ -169,3 +174,9 @@
 
 def test_suite():
     return unittest.makeSuite( TestCase )
+
+def main():
+    unittest.TextTestRunner().run(test_suite())
+
+if __name__ == '__main__':
+    main()