From 321e94fa41b121f65c02119c02098df327bbd569 Mon Sep 17 00:00:00 2001 From: za Date: Thu, 27 Oct 2016 14:53:39 +0700 Subject: Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. --- tests/view_tests/tests/test_csrf.py | 4 +-- tests/view_tests/tests/test_debug.py | 57 ++++++++++++++------------------- tests/view_tests/tests/test_defaults.py | 3 +- tests/view_tests/tests/test_specials.py | 5 ++- tests/view_tests/tests/test_static.py | 3 +- tests/view_tests/views.py | 3 +- 6 files changed, 31 insertions(+), 44 deletions(-) (limited to 'tests/view_tests') diff --git a/tests/view_tests/tests/test_csrf.py b/tests/view_tests/tests/test_csrf.py index fdd9715476..23dab04cd6 100644 --- a/tests/view_tests/tests/test_csrf.py +++ b/tests/view_tests/tests/test_csrf.py @@ -25,7 +25,7 @@ class CsrfViewTests(SimpleTestCase): ) def test_translation(self): """ - Test that an invalid request is rejected with a localized error message. + An invalid request is rejected with a localized error message. """ response = self.client.post('/') self.assertContains(response, "Forbidden", status_code=403) @@ -52,7 +52,7 @@ class CsrfViewTests(SimpleTestCase): ) def test_translation_middleware_classes(self): """ - Test that an invalid request is rejected with a localized error message. + An invalid request is rejected with a localized error message. """ response = self.client.post('/') self.assertContains(response, "Forbidden", status_code=403) diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index 2f6f164b24..3fe89d9bf3 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -80,7 +80,7 @@ class DebugViewTests(LoggingCaptureMixin, SimpleTestCase): self.assertNotContains(response, 'haha', status_code=500) def test_400(self): - # Ensure that when DEBUG=True, technical_500_template() is called. + # When DEBUG=True, technical_500_template() is called. response = self.client.get('/raises400/') self.assertContains(response, '