summaryrefslogtreecommitdiff
path: root/tests/test_exceptions/test_httpexceptions.py
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2016-03-08 12:13:35 -0800
committerMarc Abramowitz <marc@marc-abramowitz.com>2016-03-08 12:13:35 -0800
commit0604a3a5fd1a64098cbdaf44bbb76b805c5233c0 (patch)
tree4ed6f9795bad541acec6d9d054ea4a03bed64b18 /tests/test_exceptions/test_httpexceptions.py
parent545f652d8a00ea4545351aa60d42fbc8c1270f48 (diff)
downloadpaste-git-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.py10
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')])