diff MoinMoin/conftest.py @ 2286:01f05e74aa9c

Big PEP8 and whitespace cleanup
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 02 Jul 2007 23:33:20 +0200
parents 27cd29db1b96
children b902f2397c68
line wrap: on
line diff
--- a/MoinMoin/conftest.py	Mon Jul 02 20:46:01 2007 +0200
+++ b/MoinMoin/conftest.py	Mon Jul 02 23:33:20 2007 +0200
@@ -87,14 +87,14 @@
 
 class TestConfig:
     """ Custom configuration for unit tests
-    
+
     Some tests assume a specific configuration, and will fail if the wiki admin
-    changed the configuration. For example, DateTime macro test assume 
+    changed the configuration. For example, DateTime macro test assume
     the default datetime_fmt.
-    
+
     When you set custom values in a TestConfig, the previous values are saved,
     and when the TestConfig is called specifically, they are restored automatically.
-    
+
     Typical Usage
     -------------
     ::
@@ -108,7 +108,7 @@
     """
 
     def __init__(self, request):
-        """ Create temporary configuration for a test 
+        """ Create temporary configuration for a test
 
         @param request: current request
         """
@@ -117,7 +117,7 @@
         self.new = []  # New added attributes
 
     def __call__(self, defaults=(), **custom):
-        """ Initialise a temporary configuration for a test 
+        """ Initialise a temporary configuration for a test
 
         @param defaults: list of keys that should use the default value
         @param custom: other keys using non default values, or new keys
@@ -130,7 +130,7 @@
 
     def setDefaults(self, defaults=()):
         """ Set default values for keys in defaults list
-        
+
         Non existing default will raise an AttributeError.
         """
         from MoinMoin.config import multiconfig
@@ -151,8 +151,8 @@
         setattr(self.request.cfg, key, value)
 
     def restore(self):
-        """ Restore previous request.cfg 
-        
+        """ Restore previous request.cfg
+
         Set old keys to old values and delete new keys.
         """
         for key, value in self.old.items():