Timestamp:
Apr 21, 2014, 12:04:51 PM (7 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Added unit tests for `session_factory` helper.

Most tests are done with a mock class, but there's also a test in
`test_real_ftp.py` that will use `M2Crypto.ftpslib.FTP_TLS` to check
if the workaround in the `Session` class in
`ftputil.session.session_factory` works.

Note that since M2Crypto isn't available for Python 3, the real
FTP test is skipped for Python 3. (This requires the `unittest2`
module or here the `unittest` in Python 2.7 and 3.3.)
File:
1 added

Note: See TracChangeset for help on using the changeset viewer.