summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/request_response
diff options
context:
space:
mode:
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):