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/template_tests/test_custom.py | |
| parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/template_tests/test_custom.py')
| -rw-r--r-- | tests/template_tests/test_custom.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/template_tests/test_custom.py b/tests/template_tests/test_custom.py index 12331afce8..e1df10c760 100644 --- a/tests/template_tests/test_custom.py +++ b/tests/template_tests/test_custom.py @@ -127,7 +127,8 @@ class SimpleTagTests(TagTestCase): self.assertEqual(t.render(c), "Hello Jack & Jill!") def test_simple_tag_registration(self): - # Test that the decorators preserve the decorated function's docstring, name and attributes. + # The decorators preserve the decorated function's docstring, name, + # and attributes. self.verify_tag(custom.no_params, 'no_params') self.verify_tag(custom.one_param, 'one_param') self.verify_tag(custom.explicit_no_context, 'explicit_no_context') @@ -257,7 +258,8 @@ class InclusionTagTests(TagTestCase): self.assertEqual(t.render(c), entry[1]) def test_inclusion_tag_registration(self): - # Test that the decorators preserve the decorated function's docstring, name and attributes. + # The decorators preserve the decorated function's docstring, name, + # and attributes. self.verify_tag(inclusion.inclusion_no_params, 'inclusion_no_params') self.verify_tag(inclusion.inclusion_one_param, 'inclusion_one_param') self.verify_tag(inclusion.inclusion_explicit_no_context, 'inclusion_explicit_no_context') @@ -273,7 +275,7 @@ class InclusionTagTests(TagTestCase): def test_15070_use_l10n(self): """ - Test that inclusion tag passes down `use_l10n` of context to the + Inclusion tag passes down `use_l10n` of context to the Context of the included/rendered template as well. """ c = Context({}) @@ -313,7 +315,8 @@ class AssignmentTagTests(TagTestCase): self.assertEqual(t.render(c), 'The result is: assignment_no_params - Expected result') def test_assignment_tag_registration(self): - # Test that the decorators preserve the decorated function's docstring, name and attributes. + # The decorators preserve the decorated function's docstring, name, + # and attributes. self.verify_tag(custom.assignment_no_params, 'assignment_no_params') def test_assignment_tag_missing_context(self): |
