summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/request_response
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/request_response
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/request_response')
-rw-r--r--docs/quick_tutorial/request_response/tutorial/home.pt9
-rw-r--r--docs/quick_tutorial/request_response/tutorial/tests.py4
2 files changed, 2 insertions, 11 deletions
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 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <title>Quick Tour: ${name}</title>
-</head>
-<body>
-<h1>Hi ${name}</h1>
-</body>
-</html> \ 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):