From 01fc6d0f6900972d5b44d1f28c282d968b728d14 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Tue, 8 Mar 2016 12:13:35 -0800 Subject: Switch from nose to pytest --- tests/test_exceptions/test_httpexceptions.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/test_exceptions/test_httpexceptions.py') 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')]) -- cgit v1.2.1