summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/views
diff options
context:
space:
mode:
authorPaul Everitt <paul@agendaless.com>2013-09-25 12:08:33 -0400
committerPaul Everitt <paul@agendaless.com>2013-09-25 12:08:33 -0400
commit34e974e360184baef873da55f31379697e367f32 (patch)
treea1bfd80a83566c5b9500cd6754599e055cfbb458 /docs/quick_tutorial/views
parent94e72c2fe1ca6acc1dc50ab8c0da48e0e191b4df (diff)
downloadpyramid-34e974e360184baef873da55f31379697e367f32.tar.gz
pyramid-34e974e360184baef873da55f31379697e367f32.tar.bz2
pyramid-34e974e360184baef873da55f31379697e367f32.zip
Get pyramid_chameleon added to the quick tutorial, plus some other fixes for Python 3.
Diffstat (limited to 'docs/quick_tutorial/views')
-rw-r--r--docs/quick_tutorial/views/tutorial/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/quick_tutorial/views/tutorial/tests.py b/docs/quick_tutorial/views/tutorial/tests.py
index 464357051..f1757757c 100644
--- a/docs/quick_tutorial/views/tutorial/tests.py
+++ b/docs/quick_tutorial/views/tutorial/tests.py
@@ -16,7 +16,7 @@ class TutorialViewTests(unittest.TestCase):
request = testing.DummyRequest()
response = home(request)
self.assertEqual(response.status_code, 200)
- self.assertIn('Visit', response.body)
+ self.assertIn(b'Visit', response.body)
def test_hello(self):
from .views import hello
@@ -24,7 +24,7 @@ class TutorialViewTests(unittest.TestCase):
request = testing.DummyRequest()
response = hello(request)
self.assertEqual(response.status_code, 200)
- self.assertIn('Go back', response.body)
+ self.assertIn(b'Go back', response.body)
class TutorialFunctionalTests(unittest.TestCase):