summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/tests/test_config.py6
-rw-r--r--pyramid/tests/test_httpexceptions.py8
2 files changed, 7 insertions, 7 deletions
diff --git a/pyramid/tests/test_config.py b/pyramid/tests/test_config.py
index cc4a037c2..2e223076d 100644
--- a/pyramid/tests/test_config.py
+++ b/pyramid/tests/test_config.py
@@ -211,7 +211,7 @@ class ConfiguratorTests(unittest.TestCase):
view = self._getViewCallable(config,
ctx_iface=IExceptionResponse,
request_iface=IRequest)
- self.failUnless(view is default_exceptionresponse_view)
+ self.assertTrue(view is default_exceptionresponse_view)
def test_ctor_exceptionresponse_view_None(self):
from pyramid.interfaces import IExceptionResponse
@@ -220,7 +220,7 @@ class ConfiguratorTests(unittest.TestCase):
view = self._getViewCallable(config,
ctx_iface=IExceptionResponse,
request_iface=IRequest)
- self.failUnless(view is None)
+ self.assertTrue(view is None)
def test_ctor_exceptionresponse_view_custom(self):
from pyramid.interfaces import IExceptionResponse
@@ -230,7 +230,7 @@ class ConfiguratorTests(unittest.TestCase):
view = self._getViewCallable(config,
ctx_iface=IExceptionResponse,
request_iface=IRequest)
- self.failUnless(view is exceptionresponse_view)
+ self.assertTrue(view is exceptionresponse_view)
def test_with_package_module(self):
from pyramid.tests import test_configuration
diff --git a/pyramid/tests/test_httpexceptions.py b/pyramid/tests/test_httpexceptions.py
index 644051fcb..9ea9c76e4 100644
--- a/pyramid/tests/test_httpexceptions.py
+++ b/pyramid/tests/test_httpexceptions.py
@@ -75,22 +75,22 @@ class TestWSGIHTTPException(unittest.TestCase):
def test_implements_IResponse(self):
from pyramid.interfaces import IResponse
cls = self._getTargetClass()
- self.failUnless(IResponse.implementedBy(cls))
+ self.assertTrue(IResponse.implementedBy(cls))
def test_provides_IResponse(self):
from pyramid.interfaces import IResponse
inst = self._getTargetClass()()
- self.failUnless(IResponse.providedBy(inst))
+ self.assertTrue(IResponse.providedBy(inst))
def test_implements_IExceptionResponse(self):
from pyramid.interfaces import IExceptionResponse
cls = self._getTargetClass()
- self.failUnless(IExceptionResponse.implementedBy(cls))
+ self.assertTrue(IExceptionResponse.implementedBy(cls))
def test_provides_IExceptionResponse(self):
from pyramid.interfaces import IExceptionResponse
inst = self._getTargetClass()()
- self.failUnless(IExceptionResponse.providedBy(inst))
+ self.assertTrue(IExceptionResponse.providedBy(inst))
def test_ctor_sets_detail(self):
exc = self._makeOne('message')