diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2014-09-09 06:29:31 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2014-10-20 13:20:49 +0300 |
commit | 81fd054b39a7a7ca91042704e01c528f051991d3 (patch) | |
tree | 61a5a62dcf9da9753ba4e28f59060369bda920d2 | |
parent | 68116a34956a8a92dbeeeefcba0ba23061a2e587 (diff) | |
download | apscheduler-81fd054b39a7a7ca91042704e01c528f051991d3.tar.gz |
Improved the test for ref_to_obj()
-rw-r--r-- | tests/test_util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index d454f10..7377ce0 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -201,7 +201,8 @@ class TestObjToRef(object): class TestRefToObj(object): def test_valid_ref(self): - assert ref_to_obj('datetime:timedelta') == timedelta + from logging.handlers import RotatingFileHandler + assert ref_to_obj('logging.handlers:RotatingFileHandler') is RotatingFileHandler @pytest.mark.parametrize('input,error', [ (object(), TypeError), |