[Zope3-checkins] CVS: Zope3/src/zodb/tests - test_connection.py:1.1.2.2 test_timestamp.py:1.1.2.2 test_txn.py:1.1.2.2 test_utils.py:1.1.2.2 test_zodb.py:1.1.2.3 undo.py:1.1.2.3

Tim Peters tim.one@comcast.net
Tue, 24 Dec 2002 21:21:37 -0500


Update of /cvs-repository/Zope3/src/zodb/tests
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zodb/tests

Modified Files:
      Tag: NameGeddon-branch
	test_connection.py test_timestamp.py test_txn.py test_utils.py 
	test_zodb.py undo.py 
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py.  The
files are fixed-points of that script now.  Fixed a few cases where
code relied on significant trailing whitespace (ouch).


=== Zope3/src/zodb/tests/test_connection.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zodb/tests/test_connection.py:1.1.2.1	Mon Dec 23 14:30:51 2002
+++ Zope3/src/zodb/tests/test_connection.py	Tue Dec 24 21:20:06 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 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 unittest
 
@@ -38,7 +38,7 @@
 
     def test_cacheGC(self):
         self.datamgr.cacheGC()
-    
+
     def tearDown(self):
         self.datamgr.close()
         self.db.close()


=== Zope3/src/zodb/tests/test_timestamp.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zodb/tests/test_timestamp.py:1.1.2.1	Mon Dec 23 14:30:52 2002
+++ Zope3/src/zodb/tests/test_timestamp.py	Tue Dec 24 21:20:06 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 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.
-# 
+#
 ##############################################################################
 """Test the TimeStamp utility type"""
 


=== Zope3/src/zodb/tests/test_txn.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zodb/tests/test_txn.py:1.1.2.1	Mon Dec 23 14:30:52 2002
+++ Zope3/src/zodb/tests/test_txn.py	Tue Dec 24 21:20:06 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 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.
-# 
+#
 ##############################################################################
 """High-level tests of the transaction interface"""
 
@@ -84,8 +84,8 @@
     def wrap_test(self, klass, meth_name):
         unbound_method = getattr(klass, meth_name)
         unbound_method(self, 1)
-        get_transaction().commit() 
-                            
+        get_transaction().commit()
+
     testSubSingleCommit = lambda self:\
                            self.wrap_test(BasicTests, "testSingleCommit")
 


=== Zope3/src/zodb/tests/test_utils.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zodb/tests/test_utils.py:1.1.2.1	Mon Dec 23 14:30:52 2002
+++ Zope3/src/zodb/tests/test_utils.py	Tue Dec 24 21:20:06 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 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.
-# 
+#
 ##############################################################################
 """Test the routines to convert between long and 64-bit strings"""
 
@@ -27,7 +27,7 @@
     large = [random.randrange(1L<<32, 1L<<64, int=long)
              for i in range(NUM)]
     all = small + large
-    
+
     def checkLongToStringToLong(self):
         for num in self.all:
             s = p64(num)
@@ -42,9 +42,8 @@
 
 def test_suite():
     return unittest.makeSuite(TestUtils, 'check')
-            
+
 if __name__ == "__main__":
     loader = unittest.TestLoader()
     loader.testMethodPrefix = "check"
     unittest.main(testLoader=loader)
-    


=== Zope3/src/zodb/tests/test_zodb.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zodb/tests/test_zodb.py:1.1.2.2	Mon Dec 23 18:48:43 2002
+++ Zope3/src/zodb/tests/test_zodb.py	Tue Dec 24 21:20:06 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2001, 2002 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
 import unittest


=== Zope3/src/zodb/tests/undo.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zodb/tests/undo.py:1.1.2.2	Mon Dec 23 16:52:54 2002
+++ Zope3/src/zodb/tests/undo.py	Tue Dec 24 21:20:06 2002
@@ -27,7 +27,7 @@
         obj.value = 24
         get_transaction().note("24")
         get_transaction().commit()
-        
+
         obj.value = 25
         get_transaction().note("25")
         get_transaction().commit()
@@ -65,7 +65,7 @@
 
     # below here are the tests from the storage test suite that
     # need to be converted to use the DB api instead of the storage API
-    
+
     def oldcheckUndoCreationBranch1(self):
         eq = self.assertEqual
         oid = self._storage.new_oid()
@@ -519,7 +519,7 @@
                 s.transactionalUndo(tid, t)
             s.tpc_vote(t)
             s.tpc_finish(t)
-        
+
         for i in range(BATCHES):
             undo(i)
 
@@ -536,14 +536,14 @@
         for i in range(BATCHES):
             txn = iter[offset]
             offset += 1
-            
+
             tid = p64(i + 1)
             eq(txn.tid, tid)
 
             L1 = [(rec.oid, rec.serial, rec.data_txn) for rec in txn]
             L2 = [(oid, revid, None) for _tid, oid, revid in orig
                   if _tid == tid]
-            
+
             eq(L1, L2)
 
         for i in range(BATCHES * OBJECTS):