diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-07-07 16:32:58 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-08 22:04:37 +0200 |
| commit | 0e6fa65ffd9abf707e6781de019b76cc2e3cd787 (patch) | |
| tree | 8ae9784aa3b91393d0a759a86d1e4f7ec47e925b /tests/view_tests | |
| parent | 779e615e362108862f1681f965ee9e4f1d0ae6d2 (diff) | |
Refs #30400 -- Improved typography in debug and csrf templates.
Diffstat (limited to 'tests/view_tests')
| -rw-r--r-- | tests/view_tests/tests/test_debug.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index c3ae2cc600..1276f061fa 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -113,13 +113,13 @@ class DebugViewTests(SimpleTestCase): def test_404(self): response = self.client.get('/raises404/') self.assertEqual(response.status_code, 404) - self.assertContains(response, "<code>not-in-urls</code>, didn't match", status_code=404) + self.assertContains(response, '<code>not-in-urls</code>, didn’t match', status_code=404) def test_404_not_in_urls(self): response = self.client.get('/not-in-urls') self.assertNotContains(response, "Raised by:", status_code=404) self.assertContains(response, "Django tried these URL patterns", status_code=404) - self.assertContains(response, "<code>not-in-urls</code>, didn't match", status_code=404) + self.assertContains(response, '<code>not-in-urls</code>, didn’t match', status_code=404) # Pattern and view name of a RegexURLPattern appear. self.assertContains(response, r"^regex-post/(?P<pk>[0-9]+)/$", status_code=404) self.assertContains(response, "[name='regex-post']", status_code=404) @@ -130,7 +130,7 @@ class DebugViewTests(SimpleTestCase): @override_settings(ROOT_URLCONF=WithoutEmptyPathUrls) def test_404_empty_path_not_in_urls(self): response = self.client.get('/') - self.assertContains(response, "The empty path didn't match any of these.", status_code=404) + self.assertContains(response, 'The empty path didn’t match any of these.', status_code=404) def test_technical_404(self): response = self.client.get('/technical404/') |
