Changeset 207

Show
Ignore:
Timestamp:
2003-03-15 18:50:17 (6 years ago)
Author:
schwa
Message:
Module: Formatting changes (70-characters-wide display) and "`" characters.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/_mock_ftplib.py

    r182 r207  
    3030# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    3131 
    32 # $Id: _mock_ftplib.py,v 1.20 2002/04/03 21:47:41 schwa Exp $ 
     32# $Id: _mock_ftplib.py,v 1.21 2003/03/15 18:50:17 schwa Exp $ 
    3333 
    3434""" 
     
    4545DEBUG = 0 
    4646 
    47 # Use a global dictionary of the form {path: mock_file, ...} 
    48 to make "volatile" mock files accessible. This is used for 
    49 #  testing the contents of a file after an FTPHost.upload call. 
     47# Use a global dictionary of the form `{path: mock_file, ...}` to 
     48make "volatile" mock files accessible. This is used for testing 
     49#  the contents of a file after an `FTPHost.upload` call. 
    5050mock_files = {} 
    5151 
     
    5656class MockFile(StringIO.StringIO): 
    5757    """ 
    58     Mock class for the file objects _contained in_ _FTPFile 
    59     objects (not _FTPFile objects themselves!). 
    60  
    61     Unless StringIO.StringIO instances, MockFile objects can be 
    62     queried for their contents after been closed. 
     58    Mock class for the file objects _contained in_ `_FTPFile` objects 
     59    (not `_FTPFile` objects themselves!). 
     60 
     61    Unless `StringIO.StringIO` instances, `MockFile` objects can be 
     62    queried for their contents after they have been closed. 
    6363    """ 
    6464    def __init__(self, path, content=''): 
     
    8282    """ 
    8383    Mock class which is used to return something from 
    84     MockSession.transfercmd
     84    `MockSession.transfercmd`
    8585    """ 
    8686    def __init__(self, path, mock_file_content=''): 
     
    9999class MockSession: 
    100100    """ 
    101     Mock class which works like ftplib.FTP for the purpose of the 
     101    Mock class which works like `ftplib.FTP` for the purpose of the 
    102102    unit tests. 
    103103    """ 
     
    138138    def __init__(self, host='', user='', password=''): 
    139139        self.closed = 0 
    140         # count successful transfercmd invocations to ensure 
    141         #  that each has a corresponding voidresp 
     140        # count successful transfercmd invocations to ensure that 
     141        #  each has a corresponding `voidresp` 
    142142        self._transfercmds = 0 
    143143