Kaydet (Commit) 9fb40185 authored tarafından Malcolm Tredinnick's avatar Malcolm Tredinnick

Fixed tests that broke after [4756].


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4759 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 61d6249c
...@@ -44,7 +44,7 @@ __test__ = {'API_TESTS':""" ...@@ -44,7 +44,7 @@ __test__ = {'API_TESTS':"""
>>> get_object_or_404(Article, title="Foo") >>> get_object_or_404(Article, title="Foo")
Traceback (most recent call last): Traceback (most recent call last):
... ...
Http404 Http404: No Article matches the given query.
# Create an Article. # Create an Article.
>>> article = Article.objects.create(title="Run away!") >>> article = Article.objects.create(title="Run away!")
...@@ -63,7 +63,7 @@ Http404 ...@@ -63,7 +63,7 @@ Http404
>>> get_object_or_404(a.article_set, title__contains="Camelot") >>> get_object_or_404(a.article_set, title__contains="Camelot")
Traceback (most recent call last): Traceback (most recent call last):
... ...
Http404 Http404: No Article matches the given query.
# Custom managers can be used too. # Custom managers can be used too.
>>> get_object_or_404(Article.by_a_sir, title="Run away!") >>> get_object_or_404(Article.by_a_sir, title="Run away!")
...@@ -77,7 +77,7 @@ Http404 ...@@ -77,7 +77,7 @@ Http404
>>> get_list_or_404(a.article_set, title__icontains='Shrubbery') >>> get_list_or_404(a.article_set, title__icontains='Shrubbery')
Traceback (most recent call last): Traceback (most recent call last):
... ...
Http404 Http404: No Article matches the given query.
# Custom managers can be used too. # Custom managers can be used too.
>>> get_list_or_404(Article.by_a_sir, title__icontains="Run") >>> get_list_or_404(Article.by_a_sir, title__icontains="Run")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment