Ignore:
Timestamp:
Aug 3, 2013, 1:09:38 PM (6 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Use a single method for ignoring the path argument in `MockSession`.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mock_ftplib.py

    r1305 r1306  
    139139        self.current_dir = self._transform_path(path)
    140140
    141     def delete(self, path):
     141    def _ignore_path(self, path):
    142142        pass
    143143
    144     def mkd(self, path):
    145         pass
    146 
    147     def rmd(self, path):
    148         pass
     144    delete = mkd = rmd = _ignore_path
    149145
    150146    def dir(self, *args):
Note: See TracChangeset for help on using the changeset viewer.