From 366a5ce3f0c7ac1c02b58523721ab7dff2be133f Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 19 Jun 2011 21:31:28 -0400 Subject: failUnless -> assertTrue to appease the unittest naming nazis --- pyramid/tests/test_config.py | 6 +++--- pyramid/tests/test_httpexceptions.py | 8 ++++---- 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') -- cgit v1.2.3