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/decorators/tests.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'tests/decorators') diff --git a/tests/decorators/tests.py b/tests/decorators/tests.py index c010a847ca..8d8f03f101 100644 --- a/tests/decorators/tests.py +++ b/tests/decorators/tests.py @@ -87,8 +87,7 @@ class DecoratorsTest(TestCase): def test_attributes(self): """ - Tests that django decorators set certain attributes of the wrapped - function. + Built-in decorators set certain attributes of the wrapped function. """ self.assertEqual(fully_decorated.__name__, 'fully_decorated') self.assertEqual(fully_decorated.__doc__, 'Expected __doc__') @@ -96,8 +95,7 @@ class DecoratorsTest(TestCase): def test_user_passes_test_composition(self): """ - Test that the user_passes_test decorator can be applied multiple times - (#9474). + The user_passes_test decorator can be applied multiple times (#9474). """ def test1(user): user.decorators_applied.append('test1') @@ -126,10 +124,7 @@ class DecoratorsTest(TestCase): self.assertEqual(response, ['test2', 'test1']) - def test_cache_page_new_style(self): - """ - Test that we can call cache_page the new way - """ + def test_cache_page(self): def my_view(request): return "response" my_view_cached = cache_page(123)(my_view) -- cgit v1.2.1