Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed tests that broke after [4756].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4759 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9fb40185fefd5e952c08177f4d3de53e6112b17e 1 parent 61d6249
Malcolm Tredinnick malcolmt authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/modeltests/get_object_or_404/models.py
6 tests/modeltests/get_object_or_404/models.py
View
@@ -44,7 +44,7 @@ def __str__(self):
>>> get_object_or_404(Article, title="Foo")
Traceback (most recent call last):
...
-Http404
+Http404: No Article matches the given query.
# Create an Article.
>>> article = Article.objects.create(title="Run away!")
@@ -63,7 +63,7 @@ def __str__(self):
>>> get_object_or_404(a.article_set, title__contains="Camelot")
Traceback (most recent call last):
...
-Http404
+Http404: No Article matches the given query.
# Custom managers can be used too.
>>> get_object_or_404(Article.by_a_sir, title="Run away!")
@@ -77,7 +77,7 @@ def __str__(self):
>>> get_list_or_404(a.article_set, title__icontains='Shrubbery')
Traceback (most recent call last):
...
-Http404
+Http404: No Article matches the given query.
# Custom managers can be used too.
>>> get_list_or_404(Article.by_a_sir, title__icontains="Run")
Please sign in to comment.
Something went wrong with that request. Please try again.