summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2013-04-23 01:24:51 +0300
committerTshepang Lekhonkhobe <tshepang@gmail.com>2013-04-23 01:24:51 +0300
commit727508ba9a19955fb0f65e2dead3b578cee450c3 (patch)
tree50344e2e5fdff17e2382deb9e326cd376f570929
parent2eaa847998e55344206097bc1d6f211deada8086 (diff)
downloadpyramid-727508ba9a19955fb0f65e2dead3b578cee450c3.tar.gz
pyramid-727508ba9a19955fb0f65e2dead3b578cee450c3.tar.bz2
pyramid-727508ba9a19955fb0f65e2dead3b578cee450c3.zip
replace deprecated method
-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 56c62b996..89ed038f2 100644
--- a/docs/narr/testing.rst
+++ b/docs/narr/testing.rst
@@ -373,7 +373,7 @@ after accessing some values that require a fully set up environment.
result = my_view(request)
self.assertEqual(result.status, '200 OK')
body = result.app_iter[0]
- self.failUnless('Welcome to' in body)
+ self.assertTrue('Welcome to' in body)
self.assertEqual(len(result.headerlist), 2)
self.assertEqual(result.headerlist[0],
('Content-Type', 'text/html; charset=UTF-8'))