summaryrefslogtreecommitdiff
path: root/tests/test_exceptions/test_httpexceptions.py
diff options
context:
space:
mode:
authorChris Dent <chris.dent@gmail.com>2018-10-23 16:09:42 +0100
committerGitHub <noreply@github.com>2018-10-23 16:09:42 +0100
commit9a873a24759f69d6414042abdfc2fde21f8cca21 (patch)
tree953b5c70cc968b523e42e7bf0594b8ac49216b9d /tests/test_exceptions/test_httpexceptions.py
parent95efbbf0137de2f0e472ca12d60cfe242c01ec27 (diff)
parent0604a3a5fd1a64098cbdaf44bbb76b805c5233c0 (diff)
downloadpaste-git-9a873a24759f69d6414042abdfc2fde21f8cca21.tar.gz
Merge pull request #1 from cdent/pytest
Switch from nose to pytest
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')])