summaryrefslogtreecommitdiff
path: root/tests/urlpatterns_reverse
diff options
context:
space:
mode:
authorza <za@python.or.id>2016-10-27 14:53:39 +0700
committerTim Graham <timograham@gmail.com>2016-11-10 21:30:21 -0500
commit321e94fa41b121f65c02119c02098df327bbd569 (patch)
treece5476c191d589aca4b124f841dfbccac8dd299f /tests/urlpatterns_reverse
parent4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff)
downloaddjango-321e94fa41b121f65c02119c02098df327bbd569.tar.gz
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/urlpatterns_reverse')
-rw-r--r--tests/urlpatterns_reverse/tests.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py
index 522899e886..ca894fcc8e 100644
--- a/tests/urlpatterns_reverse/tests.py
+++ b/tests/urlpatterns_reverse/tests.py
@@ -363,12 +363,10 @@ class ResolverTests(SimpleTestCase):
def test_non_regex(self):
"""
- Verifies that we raise a Resolver404 if what we are resolving doesn't
- meet the basic requirements of a path to match - i.e., at the very
- least, it matches the root pattern '^/'. We must never return None
- from resolve, or we will get a TypeError further down the line.
-
- Regression for #10834.
+ A Resolver404 is raised if resolving doesn't meet the basic
+ requirements of a path to match - i.e., at the very least, it matches
+ the root pattern '^/'. Never return None from resolve() to prevent a
+ TypeError from occuring later (#10834).
"""
with self.assertRaises(Resolver404):
resolve('')
@@ -381,9 +379,9 @@ class ResolverTests(SimpleTestCase):
def test_404_tried_urls_have_names(self):
"""
- Verifies that the list of URLs that come back from a Resolver404
- exception contains a list in the right format for printing out in
- the DEBUG 404 page with both the patterns and URL names, if available.
+ The list of URLs that come back from a Resolver404 exception contains
+ a list in the right format for printing out in the DEBUG 404 page with
+ both the patterns and URL names, if available.
"""
urls = 'urlpatterns_reverse.named_urls'
# this list matches the expected URL types and names returned when
@@ -480,7 +478,7 @@ class ReverseLazyTest(TestCase):
class ReverseLazySettingsTest(AdminScriptTestCase):
"""
- Test that reverse_lazy can be used in settings without causing a circular
+ reverse_lazy can be used in settings without causing a circular
import error.
"""
def setUp(self):