summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-06-19 21:31:28 -0400
committerChris McDonough <chrism@plope.com>2011-06-19 21:31:28 -0400
commit366a5ce3f0c7ac1c02b58523721ab7dff2be133f (patch)
treec35760b9a887871244b23e29dbc366df92840cd6
parent08ffc90d071214820cb4e3514925986f796e8780 (diff)
downloadpyramid-366a5ce3f0c7ac1c02b58523721ab7dff2be133f.tar.gz
pyramid-366a5ce3f0c7ac1c02b58523721ab7dff2be133f.tar.bz2
pyramid-366a5ce3f0c7ac1c02b58523721ab7dff2be133f.zip
failUnless -> assertTrue to appease the unittest naming nazis
-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')