1
0
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:
David Smith
2021-10-18 17:06:00 +01:00
committed by Mariusz Felisiak
parent c067a2b68f
commit 6aa917383f
13 changed files with 22 additions and 18 deletions

View File

@@ -10,7 +10,7 @@ class GetObjectOr404Tests(TestCase):
a1 = Author.objects.create(name="Brave Sir Robin")
a2 = Author.objects.create(name="Patsy")
# No Articles yet, so we should get a Http404 error.
# No Articles yet, so we should get an Http404 error.
with self.assertRaises(Http404):
get_object_or_404(Article, title="Foo")
@@ -28,7 +28,7 @@ class GetObjectOr404Tests(TestCase):
article
)
# No articles containing "Camelot". This should raise a Http404 error.
# No articles containing "Camelot". This should raise an Http404 error.
with self.assertRaises(Http404):
get_object_or_404(a1.article_set, title__contains="Camelot")
@@ -50,7 +50,7 @@ class GetObjectOr404Tests(TestCase):
with self.assertRaises(Author.MultipleObjectsReturned):
get_object_or_404(Author.objects.all())
# Using an empty QuerySet raises a Http404 error.
# Using an empty QuerySet raises an Http404 error.
with self.assertRaises(Http404):
get_object_or_404(Article.objects.none(), title__contains="Run")