summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-03-20 23:27:16 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-03-20 23:27:16 +0000
commit9fb40185fefd5e952c08177f4d3de53e6112b17e (patch)
treea150388550fc1b4c48015beb908831e65ff216da
parent61d6249c2bf6c57684a3b77c6cec8601e7a26b44 (diff)
Fixed tests that broke after [4756].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4759 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/modeltests/get_object_or_404/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/modeltests/get_object_or_404/models.py b/tests/modeltests/get_object_or_404/models.py
index 79bcc6f52c..0aefd40fdf 100644
--- a/tests/modeltests/get_object_or_404/models.py
+++ b/tests/modeltests/get_object_or_404/models.py
@@ -44,7 +44,7 @@ __test__ = {'API_TESTS':"""
>>> 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 @@ Http404
>>> 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 @@ Http404
>>> 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")