[Zope-Checkins] CVS: Zope/lib/python/Products/Sessions/tests - testBrowserIdManager.py:1.11 testSessionDataManager.py:1.14

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


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

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


=== Zope/lib/python/Products/Sessions/tests/testBrowserIdManager.py 1.10 => 1.11 ===
--- Zope/lib/python/Products/Sessions/tests/testBrowserIdManager.py:1.10	Sat Aug 10 15:28:38 2002
+++ Zope/lib/python/Products/Sessions/tests/testBrowserIdManager.py	Wed Aug 14 18:25:10 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
-# 
+#
 ##############################################################################
 """
 Test suite for session id manager.
@@ -34,7 +34,7 @@
         environ['SERVER_PORT']='80'
         req = HTTPRequest(stdin, environ, resp)
         self.m.REQUEST = req
-        
+
     def tearDown(self):
         del self.m
 
@@ -114,7 +114,7 @@
         self.m.setCookieDomain('.zope.org')
         setdomain = self.m.getCookieDomain()
         self.failUnless( setdomain == '.zope.org', "%s" % setdomain )
-        
+
     def testSetCookieSecure(self):
         self.m.setCookieSecure(1)
         self.failUnless( self.m.getCookieSecure() == 1 )
@@ -143,7 +143,7 @@
         self.failUnless( not self.m.hasBrowserId() )
         a = self.m.getBrowserId()
         self.failUnless( self.m.hasBrowserId() )
-        
+
     def testBrowserIdIsNew(self):
         a = self.m.getBrowserId()
         self.failUnless( self.m.isBrowserIdNew() )
@@ -178,7 +178,7 @@
         a = self.m.getBrowserId()
         self.failUnless( self.m.isBrowserIdFromCookie() )
         self.failUnless( not self.m.isBrowserIdFromForm() )
- 
+
     def testIsBrowserIdFromFormOnly(self):
         token = self.m.getBrowserId()
         self.m.REQUEST.browser_id_ = token
@@ -202,7 +202,7 @@
         self.m.flushBrowserIdCookie()
         c = self.m.REQUEST.RESPONSE.cookies[tokenkey]
         self.failUnless( c['value'] == 'deleted' )
-        
+
     def testSetBrowserIdCookieByForce(self):
         token = self.m.getBrowserId()
         self.m.REQUEST.browser_id_ = token
@@ -238,7 +238,7 @@
 def test_suite():
     testsuite = makeSuite(TestBrowserIdManager, 'test')
     return testsuite
-        
+
 if __name__ == '__main__':
     runner = TextTestRunner(verbosity=9)
     runner.run(test_suite())


=== Zope/lib/python/Products/Sessions/tests/testSessionDataManager.py 1.13 => 1.14 ===
--- Zope/lib/python/Products/Sessions/tests/testSessionDataManager.py:1.13	Fri Jul 19 00:44:35 2002
+++ Zope/lib/python/Products/Sessions/tests/testSessionDataManager.py	Wed Aug 14 18:25:10 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
 
@@ -92,11 +92,11 @@
 
     app.temp_folder._setObject(toc_name, toc)
     get_transaction().commit()
-    
+
     # index_html necessary for publishing emulation for testAutoReqPopulate
     app._setObject('index_html', DTMLMethod('', __name__='foo'))
     get_transaction().commit()
-    
+
 class TestBase(TestCase):
     def setUp(self):
         db = _getDB()
@@ -137,7 +137,7 @@
         sd = self.app.session_data_manager.getSessionData(1)
         sdm = aq_base(getattr(self.app, sdm_name))
         toc = aq_base(getattr(self.app.temp_folder, toc_name))
-        
+
         self.failUnless(aq_base(sd.aq_parent) is sdm)
         self.failUnless(aq_base(sd.aq_parent.aq_parent) is toc)
 
@@ -229,4 +229,3 @@
 if __name__ == '__main__':
     runner = TextTestRunner(verbosity=9, descriptions=9)
     runner.run(test_suite())
-