[Zope3-checkins] CVS: Zope3/src/zope/server/ftp/tests - demofs.py:1.2 test_ftpserver.py:1.5

Albertas Agejevas alga@codeworks.lt
Thu, 13 Mar 2003 13:49:48 -0500


Update of /cvs-repository/Zope3/src/zope/server/ftp/tests
In directory cvs.zope.org:/tmp/cvs-serv1411/src/zope/server/ftp/tests

Modified Files:
	demofs.py test_ftpserver.py 
Log Message:
An unexpected raid by the Whitespace Police.

Other than fixes of nonconforming whitespace, just a couple of $Id$
docstrings has been added.



=== Zope3/src/zope/server/ftp/tests/demofs.py 1.1 => 1.2 ===
--- Zope3/src/zope/server/ftp/tests/demofs.py:1.1	Mon Feb  3 10:09:01 2003
+++ Zope3/src/zope/server/ftp/tests/demofs.py	Thu Mar 13 13:49:17 2003
@@ -1,7 +1,7 @@
 ##############################################################################
 # Copyright (c) 2003 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
@@ -85,7 +85,7 @@
 
         while path.startswith('/'):
             path = path[1:]
-            
+
         d = self.files
         if path:
             for name in path.split('/'):
@@ -104,13 +104,13 @@
         if d is None:
             raise OSError("No such file or directory:", path)
         return d
-    
+
     def getdir(self, path):
         d = self.getany(path)
         if d.type != 'd':
             raise OSError("Not a directory:", path)
         return d
-    
+
     def getfile(self, path):
         d = self.getany(path)
         if d.type != 'f':
@@ -126,7 +126,7 @@
     def type(self, path):
         "See zope.server.interfaces.ftp.IFileSystem"
         f = self.get(path)
-        return getattr(f, 'type', None)        
+        return getattr(f, 'type', None)
 
     def names(self, path, filter=None):
         "See zope.server.interfaces.ftp.IFileSystem"
@@ -149,7 +149,7 @@
             info['mtime'] = file.modified
 
         return info
-    
+
     def ls(self, path, filter=None):
         "See zope.server.interfaces.ftp.IFileSystem"
         f = self.getdir(path)
@@ -177,7 +177,7 @@
     def lsinfo(self, path):
         "See zope.server.interfaces.ftp.IFileSystem"
         f = self.getany(path)
-        return self._lsinfo(posixpath.split(path)[1], f) 
+        return self._lsinfo(posixpath.split(path)[1], f)
 
     def mtime(self, path):
         "See zope.server.interfaces.ftp.IFileSystem"
@@ -188,7 +188,7 @@
         "See zope.server.interfaces.ftp.IFileSystem"
         f = self.getany(path)
         return len(getattr(f, 'data', ''))
-        
+
     def mkdir(self, path):
         "See zope.server.interfaces.ftp.IFileSystem"
         path, name = posixpath.split(path)
@@ -198,7 +198,7 @@
         newdir = self.Directory()
         newdir.grant(self.user, read | write)
         d.files[name] = newdir
-        
+
     def remove(self, path):
         "See zope.server.interfaces.ftp.IFileSystem"
         path, name = posixpath.split(path)
@@ -209,7 +209,7 @@
         if f.type == 'd':
             raise OSError('Is a directory:', name)
         del d.files[name]
-                          
+
     def rmdir(self, path):
         "See zope.server.interfaces.ftp.IFileSystem"
         path, name = posixpath.split(path)
@@ -255,7 +255,7 @@
         if append:
             f.data += instream.read()
         else:
-            
+
             if start:
                 if start < 0:
                     raise ValueError("Negative starting file position")
@@ -284,7 +284,7 @@
             return d.accessable(self.user, write)
         f = d[name]
         return f.type == 'f' and f.accessable(self.user, write)
-            
+
 class DemoFileSystemAccess:
     __doc__ = IFileSystemAccess.__doc__
 


=== Zope3/src/zope/server/ftp/tests/test_ftpserver.py 1.4 => 1.5 ===
--- Zope3/src/zope/server/ftp/tests/test_ftpserver.py:1.4	Mon Feb  3 10:09:01 2003
+++ Zope3/src/zope/server/ftp/tests/test_ftpserver.py	Thu Mar 13 13:49:17 2003
@@ -347,4 +347,4 @@
     return loader.loadTestsFromTestCase(Tests)
 
 if __name__=='__main__':
-    unittest.TextTestRunner().run( test_suite() )
+    unittest.TextTestRunner().run(test_suite())