[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/twisted/tests/test_inputbuffering.py Merged revision 41128 from the 3.2 branch:

Dmitry Vasiliev dima at hlabs.spb.ru
Wed Jan 4 07:29:18 EST 2006


Log message for revision 41129:
  Merged revision 41128 from the 3.2 branch:
  
  Fixed typo and removed trailing whitespaces
  

Changed:
  U   Zope3/trunk/src/zope/app/twisted/tests/test_inputbuffering.py

-=-
Modified: Zope3/trunk/src/zope/app/twisted/tests/test_inputbuffering.py
===================================================================
--- Zope3/trunk/src/zope/app/twisted/tests/test_inputbuffering.py	2006-01-04 12:28:14 UTC (rev 41128)
+++ Zope3/trunk/src/zope/app/twisted/tests/test_inputbuffering.py	2006-01-04 12:29:18 UTC (rev 41129)
@@ -11,9 +11,9 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-r"""Meke sure that input is buffered
+r"""Make sure that input is buffered
 
-Meke sure that input is buffered, so that a slow client doesn't block
+Make sure that input is buffered, so that a slow client doesn't block
 an application thread.
 
 Also, test that both small and (somewhat) large inputs are handled correctly.
@@ -63,6 +63,7 @@
 
 $Id$
 """
+
 import errno
 import httplib
 import os
@@ -77,6 +78,7 @@
 import ZEO.tests.testZEO # we really need another library
 import ZEO.tests.forker
 
+
 class Echo:
 
     def __init__(self, _, request):
@@ -92,11 +94,8 @@
                 result.append(l)
             else:
                 break
-            
         return ''.join(result)
-    
 
-
 class Instance:
 
     def __init__(self, dir=None, name=None, zeo_port=1):
@@ -139,11 +138,11 @@
         <include package="zope.app.twisted" />
         <securityPolicy
            component="zope.security.simplepolicies.PermissiveSecurityPolicy" />
-        
+
         <unauthenticatedPrincipal
             id="zope.anybody"
             title="Unauthenticated User" />
-        
+
         <principal
             id="zope.manager"
             title="Manager"
@@ -158,7 +157,7 @@
             attribute="echo"
             permission="zope.Public"
             />
-        
+
         </configure>
         """
         mkfile(self.dir, "site.zcml", template, self.__dict__)
@@ -192,7 +191,7 @@
         os.spawnv(os.P_NOWAIT, sys.executable,
                   (sys.executable, os.path.join(self.dir, "runzope"), ),
                   )
-                  
+
     def stop(self):
         connection = httplib.HTTPConnection('localhost', self.port)
         connection.request(
@@ -244,17 +243,17 @@
                 break
 
     url = property(lambda self: 'http://localhost:%d/' % self.port)
-    
+
 def mkfile(dir, name, template, kw):
     f = open(os.path.join(dir, name), 'w')
     f.write(template % kw)
     f.close()
-    
+
 def test_suite():
     suite = doctest.DocTestSuite()
     suite.level = 2
     return suite
 
+
 if __name__ == '__main__':
     unittest.main(defaultTest='test_suite')
-



More information about the Zope3-Checkins mailing list