Changeset 131
- Timestamp:
- 2002-03-30 18:46:59 (7 years ago)
- Files:
-
- trunk/_mock_ftplib.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/_mock_ftplib.py
r122 r131 30 30 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 31 32 # $Id: _mock_ftplib.py,v 1.1 0 2002/03/30 17:40:03schwa Exp $32 # $Id: _mock_ftplib.py,v 1.11 2002/03/30 18:46:59 schwa Exp $ 33 33 34 34 """ … … 328 328 """ 329 329 def __init__(self, mock_file_content=''): 330 if DEBUG: 331 print 'File content: *%s*' % mock_file_content 330 332 self.mock_file_content = mock_file_content 331 333 … … 418 420 if self.dir_contents.has_key(path): 419 421 raise ftplib.error_perm 422 # fail if path isn't available (this name is hard-coded here 423 # and has to be used for the corresponding tests) 424 if cmd == 'RETR' and path == 'notthere': 425 raise ftplib.error_perm 420 426 return MockSocket(self.mock_file_content) 421 427
