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/request_response/tutorial/home.pt | 9 --------- docs/quick_tutorial/request_response/tutorial/tests.py | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 docs/quick_tutorial/request_response/tutorial/home.pt (limited to 'docs/quick_tutorial/request_response') diff --git a/docs/quick_tutorial/request_response/tutorial/home.pt b/docs/quick_tutorial/request_response/tutorial/home.pt deleted file mode 100644 index a0cc08e7a..000000000 --- a/docs/quick_tutorial/request_response/tutorial/home.pt +++ /dev/null @@ -1,9 +0,0 @@ - - - - Quick Tour: ${name} - - -

Hi ${name}

- - \ No newline at end of file diff --git a/docs/quick_tutorial/request_response/tutorial/tests.py b/docs/quick_tutorial/request_response/tutorial/tests.py index 87c853375..7486c2b2d 100644 --- a/docs/quick_tutorial/request_response/tutorial/tests.py +++ b/docs/quick_tutorial/request_response/tutorial/tests.py @@ -24,7 +24,7 @@ class TutorialViewTests(unittest.TestCase): request = testing.DummyRequest() inst = TutorialViews(request) response = inst.plain() - self.assertIn('No Name Provided', response.body) + self.assertIn(b'No Name Provided', response.body) def test_plain_with_name(self): from .views import TutorialViews @@ -33,7 +33,7 @@ class TutorialViewTests(unittest.TestCase): request.GET['name'] = 'Jane Doe' inst = TutorialViews(request) response = inst.plain() - self.assertIn('Jane Doe', response.body) + self.assertIn(b'Jane Doe', response.body) class TutorialFunctionalTests(unittest.TestCase): -- cgit v1.2.3