summaryrefslogtreecommitdiff
path: root/tests/modeltests/basic
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-05-06 18:36:32 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-05-06 18:36:32 +0000
commit0727df90f0c301c98b560766ea869802ec3802fc (patch)
treec9c759d404dac4b177ede3902dca91fe0792c989 /tests/modeltests/basic
parent71f45686137dc45717f41e145b260d960c4bb2e5 (diff)
Fixed #1781 -- Fixed unit tests to use new error message for DoesNotExist. Thanks, pb
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/basic')
-rw-r--r--tests/modeltests/basic/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeltests/basic/models.py b/tests/modeltests/basic/models.py
index c96cd993ad..16df447c91 100644
--- a/tests/modeltests/basic/models.py
+++ b/tests/modeltests/basic/models.py
@@ -73,12 +73,12 @@ Area woman programs in Python
>>> Article.objects.get(id__exact=2)
Traceback (most recent call last):
...
-DoesNotExist: Article does not exist for {'id__exact': 2}
+DoesNotExist: Article matching query does not exist.
>>> Article.objects.get(pub_date__year=2005, pub_date__month=8)
Traceback (most recent call last):
...
-DoesNotExist: Article does not exist for ...
+DoesNotExist: Article matching query does not exist.
# Lookup by a primary key is the most common case, so Django provides a
# shortcut for primary-key exact lookups.