diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-03-08 12:13:35 -0800 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-03-08 12:13:35 -0800 |
commit | 0604a3a5fd1a64098cbdaf44bbb76b805c5233c0 (patch) | |
tree | 4ed6f9795bad541acec6d9d054ea4a03bed64b18 /tests/test_config.py | |
parent | 545f652d8a00ea4545351aa60d42fbc8c1270f48 (diff) | |
download | paste-git-pytest.tar.gz |
Switch from nose to pytestpytest
Diffstat (limited to 'tests/test_config.py')
-rw-r--r-- | tests/test_config.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 8119157..bc3dcf0 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,9 +1,11 @@ # (c) 2007 Philip Jenvey; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php -from nose.tools import assert_raises + +import pytest +import six + from paste.config import CONFIG, ConfigMiddleware from paste.fixture import TestApp -import six test_key = 'test key' @@ -76,8 +78,8 @@ def test_process_config(request_app=test_request_config): assert CONFIG['process_var'] == 'foo' CONFIG.pop_process_config() - assert_raises(AttributeError, lambda: 'process_var' not in CONFIG) - assert_raises(IndexError, CONFIG.pop_process_config) + pytest.raises(AttributeError, lambda: 'process_var' not in CONFIG) + pytest.raises(IndexError, CONFIG.pop_process_config) finally: reset_config() |