From 34e974e360184baef873da55f31379697e367f32 Mon Sep 17 00:00:00 2001 From: Paul Everitt Date: Wed, 25 Sep 2013 12:08:33 -0400 Subject: Get pyramid_chameleon added to the quick tutorial, plus some other fixes for Python 3. --- docs/quick_tutorial/views/tutorial/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/quick_tutorial/views') 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): -- cgit v1.2.3