mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[4.0.x] Refs #32956 -- Changed docs to treat the acronym HTTP phonetically.
Backport of 69b0736fad from main
This commit is contained in:
committed by
Mariusz Felisiak
parent
c067a2b68f
commit
6aa917383f
@@ -89,7 +89,8 @@ class ViewTest(SimpleTestCase):
|
||||
|
||||
def test_pathological_http_method(self):
|
||||
"""
|
||||
The edge case of a http request that spoofs an existing method name is caught.
|
||||
The edge case of an http request that spoofs an existing method name is
|
||||
caught.
|
||||
"""
|
||||
self.assertEqual(SimpleView.as_view()(
|
||||
self.rf.get('/', REQUEST_METHOD='DISPATCH')
|
||||
@@ -140,7 +141,7 @@ class ViewTest(SimpleTestCase):
|
||||
def test_invalid_keyword_argument(self):
|
||||
"""
|
||||
View arguments must be predefined on the class and can't
|
||||
be named like a HTTP method.
|
||||
be named like an HTTP method.
|
||||
"""
|
||||
msg = (
|
||||
'The method name %s is not accepted as a keyword argument to '
|
||||
|
||||
Reference in New Issue
Block a user