summaryrefslogtreecommitdiff
path: root/tests/get_object_or_404
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2021-10-18 17:06:00 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-10-18 21:00:28 +0200
commit69b0736fad1d1f0197409ca025b7bcdf5666ae62 (patch)
tree10186ffaf53d0d472429a0e2a6e0bea60ea709b5 /tests/get_object_or_404
parente2f778d57947d168a875159e6df075255eea4bbc (diff)
downloaddjango-69b0736fad1d1f0197409ca025b7bcdf5666ae62.tar.gz
Refs #32956 -- Changed docs to treat the acronym HTTP phonetically.
Diffstat (limited to 'tests/get_object_or_404')
-rw-r--r--tests/get_object_or_404/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/get_object_or_404/tests.py b/tests/get_object_or_404/tests.py
index 075f9a08e1..71815d34ef 100644
--- a/tests/get_object_or_404/tests.py
+++ b/tests/get_object_or_404/tests.py
@@ -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")