diff options
Diffstat (limited to 'docs/quick_tutorial/views')
| -rw-r--r-- | docs/quick_tutorial/views/tutorial/tests.py | 4 |
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): |
