diff options
Diffstat (limited to 'tests/get_object_or_404/tests.py')
| -rw-r--r-- | tests/get_object_or_404/tests.py | 6 |
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") |
