[Zope-Checkins] CVS: Zope/lib/python/Products/Transience/tests - fauxtime.py:1.2 testTimeoutRelated.py:1.9 testTransientObject.py:1.8 testTransientObjectContainer.py:1.11

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


Update of /cvs-repository/Zope/lib/python/Products/Transience/tests
In directory cvs.zope.org:/tmp/cvs-serv27658/Transience/tests

Modified Files:
	fauxtime.py testTimeoutRelated.py testTransientObject.py 
	testTransientObjectContainer.py 
Log Message:
Clean up indentation and trailing whitespace.


=== Zope/lib/python/Products/Transience/tests/fauxtime.py 1.1 => 1.2 ===
--- Zope/lib/python/Products/Transience/tests/fauxtime.py:1.1	Wed Nov 21 17:46:37 2001
+++ Zope/lib/python/Products/Transience/tests/fauxtime.py	Wed Aug 14 18:25:14 2002
@@ -9,4 +9,3 @@
 def sleep(duration):
     """ False sleep -- sleep for 1/10 the time specifed """
     origtime.sleep(duration / 10.0)
-


=== Zope/lib/python/Products/Transience/tests/testTimeoutRelated.py 1.8 => 1.9 ===
--- Zope/lib/python/Products/Transience/tests/testTimeoutRelated.py:1.8	Thu Jun 20 21:51:43 2002
+++ Zope/lib/python/Products/Transience/tests/testTimeoutRelated.py	Wed Aug 14 18:25:14 2002
@@ -72,7 +72,7 @@
         del self.app
         Products.Transience.Transience.time = oldtime
         Products.Transience.TransientObject.time = oldtime
-        
+
 class TestLastAccessed(TestBase):
     def testLastAccessed(self):
         sdo = self.app.sm.new_or_existing('TempObject')


=== Zope/lib/python/Products/Transience/tests/testTransientObject.py 1.7 => 1.8 ===
--- Zope/lib/python/Products/Transience/tests/testTransientObject.py:1.7	Wed Jun 12 16:39:19 2002
+++ Zope/lib/python/Products/Transience/tests/testTransientObject.py	Wed Aug 14 18:25:14 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 sys, os, unittest
 
@@ -34,7 +34,7 @@
         Products.Transience.TransientObject.time = oldtime
         self.t = None
         del self.t
-        
+
     def test_id(self):
         t = self.t.new('xyzzy')
         assert t.getId() != 'xyzzy'
@@ -99,10 +99,10 @@
         assert t.get('foobie') is None
         self.assertRaises(AttributeError, self._genLenError, t)
         assert t.get('foobie',None) is None
-        assert t.has_key('a') 
-        assert not t.has_key('foobie') 
+        assert t.has_key('a')
+        assert not t.has_key('foobie')
         t.clear()
-        assert not len(t.keys()) 
+        assert not len(t.keys())
 
     def test_TTWDictionary(self):
         t = self.t.new('mouthfultest')
@@ -111,7 +111,7 @@
         assert t.get('foo') == 'bar'
         t.set('foobie', 'blech')
         t.delete('foobie')
-        assert t.get('foobie') is None 
+        assert t.get('foobie') is None
 
 
 def test_suite():
@@ -130,4 +130,3 @@
 if __name__ == '__main__':
     runner = TextTestRunner(verbosity=9)
     runner.run(test_suite())
-


=== Zope/lib/python/Products/Transience/tests/testTransientObjectContainer.py 1.10 => 1.11 ===
--- Zope/lib/python/Products/Transience/tests/testTransientObjectContainer.py:1.10	Thu Jun 20 21:51:43 2002
+++ Zope/lib/python/Products/Transience/tests/testTransientObjectContainer.py	Wed Aug 14 18:25:14 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 sys, os, time, random, unittest
 
@@ -75,7 +75,7 @@
         for x in v:
             assert x == i
             i = i + 1
-            
+
     def testKeysWorks(self):
         for x in range(10, 110):
             self.t[x] = x
@@ -137,7 +137,7 @@
         self.t[4] = 99
         del self.t[2]
         assert lsubtract(self.t.keys(),[1,3,4,5,6,10])==[], `self.t.keys()`
-        
+
     def donttestDeleteTwoChildrenInorderSuccessorWorks(self):
         self.t[5] = 6
         self.t[2] = 10
@@ -325,7 +325,7 @@
         # we should still have 100 - 199
         for x in range(110, 210):
             assert self.t[x] == x
-        # but we shouldn't have 0 - 100 
+        # but we shouldn't have 0 - 100
         for x in range(10, 110):
             try: self.t[x]
             except KeyError: pass
@@ -439,13 +439,13 @@
         for x in range(11):
             self.t.new(str(x))
 
-        
+
 def lsubtract(l1, l2):
-   l1=list(l1)
-   l2=list(l2)
-   l = filter(lambda x, l1=l1: x not in l1, l2)
-   l = l + filter(lambda x, l2=l2: x not in l2, l1)
-   return l
+    l1=list(l1)
+    l2=list(l2)
+    l = filter(lambda x, l1=l1: x not in l1, l2)
+    l = l + filter(lambda x, l2=l2: x not in l2, l1)
+    return l
 
 def test_suite():
     testsuite = makeSuite(TestTransientObjectContainer, 'test')
@@ -456,4 +456,3 @@
 if __name__ == '__main__':
     runner = TextTestRunner(verbosity=9)
     runner.run(test_suite())
-