diff options
author | za <za@python.or.id> | 2016-10-27 14:53:39 +0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-10 21:30:21 -0500 |
commit | 321e94fa41b121f65c02119c02098df327bbd569 (patch) | |
tree | ce5476c191d589aca4b124f841dfbccac8dd299f /tests/decorators | |
parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
download | django-321e94fa41b121f65c02119c02098df327bbd569.tar.gz |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/decorators')
-rw-r--r-- | tests/decorators/tests.py | 11 |
1 files changed, 3 insertions, 8 deletions
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) |