Ignore:
Timestamp:
Jul 27, 2016, 10:54:56 PM (4 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Remove `unittest` dependency

- Remove `unittest` imports

- Let test case classes inherit from `object` instead of
  `unittest.TestCase`

- Use `setup_method` and `teardown_method` instead of
  `unittest`'s `setUp` and `tearDown`

- Use `pytest.mark.skipif` instead of `unittest.skipIf`

- Use `pytest.mark.slow_test` instead of decorator in
  `test/__init__.py`. Exclude slow tests with

    py.test -m "not slow_test" test

- Replace some leftover `assert*` calls with `assert`
  statements

- Replace `assert False, ...` with `pytest.fail`

ticket: 98
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_session.py

    r1662 r1663  
    88
    99from __future__ import unicode_literals
    10 
    11 import unittest
    1210
    1311import ftputil.session
     
    5149
    5250
    53 class TestSessionFactory(unittest.TestCase):
     51class TestSessionFactory(object):
    5452    """
    5553    Test if session factories created by
Note: See TracChangeset for help on using the changeset viewer.