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 | 01fc6d0f6900972d5b44d1f28c282d968b728d14 (patch) | |
tree | 4ed6f9795bad541acec6d9d054ea4a03bed64b18 /tests/test_exceptions/test_httpexceptions.py | |
parent | 0bf670c2e5d30c6b49cd08ba1d09fc26593b477f (diff) | |
download | paste-pytest.tar.gz |
Switch from nose to pytestpytest
Diffstat (limited to 'tests/test_exceptions/test_httpexceptions.py')
-rw-r--r-- | tests/test_exceptions/test_httpexceptions.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_exceptions/test_httpexceptions.py b/tests/test_exceptions/test_httpexceptions.py index 24e00dd..708de0e 100644 --- a/tests/test_exceptions/test_httpexceptions.py +++ b/tests/test_exceptions/test_httpexceptions.py @@ -6,16 +6,18 @@ WSGI Exception Middleware Regression Test Suite """ -from nose.tools import assert_raises + +import pytest +import six + from paste.httpexceptions import * from paste.response import header_value -import six def test_HTTPMove(): """ make sure that location is a mandatory attribute of Redirects """ - assert_raises(AssertionError, HTTPFound) - assert_raises(AssertionError, HTTPTemporaryRedirect, + pytest.raises(AssertionError, HTTPFound) + pytest.raises(AssertionError, HTTPTemporaryRedirect, headers=[('l0cation','/bing')]) assert isinstance(HTTPMovedPermanently("This is a message", headers=[('Location','/bing')]) |