[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/FieldIndex/tests - testFieldIndex.py:1.6

Martijn Pieters mj@zope.com
Wed, 14 Aug 2002 18:20:01 -0400


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

Modified Files:
	testFieldIndex.py 
Log Message:
Clean up indentation and trailing whitespace.


=== Zope/lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py 1.5 => 1.6 ===
--- Zope/lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py:1.5	Wed Mar 13 09:23:36 2002
+++ Zope/lib/python/Products/PluginIndexes/FieldIndex/tests/testFieldIndex.py	Wed Aug 14 18:19:29 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
@@ -26,7 +26,7 @@
 
     def __str__( self ):
         return '<Dummy: %s>' % self._foo
-    
+
     __repr__ = __str__
 
 class TestCase( unittest.TestCase ):
@@ -54,7 +54,7 @@
             self._backward[k] = v
             keys = self._forward.get( v, [] )
             self._forward[v] = keys
-            
+
         self._noop_req  = { 'bar': 123 }
         self._request   = { 'foo': 'abce' }
         self._min_req   = { 'foo': 'abc'
@@ -77,7 +77,7 @@
     def _populateIndex( self ):
         for k, v in self._values:
             self._index.index_object( k, v )
-    
+
     def _checkApply( self, req, expectedValues ):
         result, used = self._index._apply_index( req )
         if hasattr(result, 'keys'):
@@ -87,7 +87,7 @@
           '%s | %s' % ( map( None, result ), expectedValues )
         for k, v in expectedValues:
             assert k in result
-    
+
     def testEmpty( self ):
         "Test an empty FieldIndex."
 
@@ -108,7 +108,7 @@
         self._checkApply( self._min_req, [] )
         self._checkApply( self._max_req, [] )
         self._checkApply( self._range_req, [] )
-    
+
     def testPopulated( self ):
         """ Test a populated FieldIndex """
         self._populateIndex()
@@ -170,7 +170,7 @@
         else:
             # before Collector #291 this would be 'world'
             raise ValueError(repr(should_not_be))
-                    
+
     def testRange(self):
         """Test a range search"""
         index = FieldIndex( 'foo' )
@@ -191,8 +191,8 @@
             40, 41, 42, 43, 50, 51, 52, 53, 60, 61, 62, 63, 70, 71, 72, 73,
             80, 81, 82, 83, 90, 91, 92, 93
             ]
-        
-        assert r==expect, r 
+
+        assert r==expect, r
 
         #
         #   Make sure that range tests with incompatible paramters