[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/PathIndex/tests - testPathIndex.py:1.7
Martijn Pieters
mj@zope.com
Wed, 14 Aug 2002 18:20:02 -0400
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/PathIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv24540/PathIndex/tests
Modified Files:
testPathIndex.py
Log Message:
Clean up indentation and trailing whitespace.
=== Zope/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py 1.6 => 1.7 ===
--- Zope/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py:1.6 Tue Jun 11 17:05:28 2002
+++ Zope/lib/python/Products/PluginIndexes/PathIndex/tests/testPathIndex.py Wed Aug 14 18:19:31 2002
@@ -1,14 +1,14 @@
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
import os, sys, unittest
@@ -25,10 +25,10 @@
def getPhysicalPath(self):
return self.path.split('/')
-
+
def __str__( self ):
return '<Dummy: %s>' % self.path
-
+
__repr__ = __str__
class TestCase( unittest.TestCase ):
@@ -78,11 +78,11 @@
assert len(self._index._index)==0
assert len(self._index._unindex)==0
-
+
def testSimpleTests(self):
self._populateIndex()
-
+
tests = [
("aa",0, [1,2,3,4,5,6,7,8,9]),
("aa",1, [1,2,3,10,11,12] ),
@@ -109,11 +109,11 @@
{"path":{'query':( (path,level),)}})
lst = list(res[0].keys())
self.assertEqual(lst,results)
-
+
def testComplexOrTests(self):
self._populateIndex()
-
+
tests = [
(['aa','bb'],1,[1,2,3,4,5,6,10,11,12,13,14,15]),
(['aa','bb','xx'],1,[1,2,3,4,5,6,10,11,12,13,14,15]),
@@ -130,7 +130,7 @@
def testComplexANDTests(self):
self._populateIndex()
-
+
tests = [
(['aa','bb'],1,[]),
([('aa',0),('bb',1)],0,[4,5,6]),