summaryrefslogtreecommitdiff
path: root/docs/narr/testing.rst
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2013-04-22 16:39:57 -0700
committerTres Seaver <tseaver@palladion.com>2013-04-22 16:39:57 -0700
commit1840f20e9e3c20f035c517e9e4804f60778b0105 (patch)
tree1a0d09a71faea778b2aa641c736971a282c61088 /docs/narr/testing.rst
parentaa66e5ffeadc24a76dd157df93e712988a3516bb (diff)
parent1bf894d55e6a536f31a8c4c2b99c29e96b3bd3a9 (diff)
downloadpyramid-1840f20e9e3c20f035c517e9e4804f60778b0105.tar.gz
pyramid-1840f20e9e3c20f035c517e9e4804f60778b0105.tar.bz2
pyramid-1840f20e9e3c20f035c517e9e4804f60778b0105.zip
Merge pull request #999 from tshepang/patch-5
replace deprecated method
Diffstat (limited to 'docs/narr/testing.rst')
-rw-r--r--docs/narr/testing.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/narr/testing.rst b/docs/narr/testing.rst
index 89ed038f2..7051941f5 100644
--- a/docs/narr/testing.rst
+++ b/docs/narr/testing.rst
@@ -416,7 +416,7 @@ functional testing package written by Ian Bicking.
def test_root(self):
res = self.testapp.get('/', status=200)
- self.failUnless('Pyramid' in res.body)
+ self.assertTrue('Pyramid' in res.body)
When this test is run, each test creates a "real" WSGI application using the
``main`` function in your ``myapp.__init__`` module and uses :term:`WebTest`