Ignore:
Timestamp:
Jul 28, 2013, 4:06:29 PM (6 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Added tests for string type handling for `chdir` and `listdir`.

TODO: A bytes argument for `listdir` doesn't work yet.

TODO: String type tests for `path.join` and `path.split*`.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mock_ftplib.py

    r1274 r1284  
    1717import ftplib
    1818import posixpath
     19
     20import ftputil.tool
     21
    1922
    2023DEBUG = 0
     
    133136
    134137    def cwd(self, path):
     138        path = ftputil.tool.as_unicode(path)
    135139        self.current_dir = self._transform_path(path)
    136140
     
    232236lrwxrwxrwx   2 45854    200             6 May 29  2000 ü -> ä""",
    233237
     238      '/home/file_name_test/ä': """\
     239-rw-r--r--   1 45854    200          4604 Jan 19 23:11 ö
     240-rw-r--r--   1 45854    200          4604 Jan 19 23:11 o""",
     241
    234242      # Fail when trying to write to this directory (the content isn't
    235243      # relevant).
Note: See TracChangeset for help on using the changeset viewer.