From 0727df90f0c301c98b560766ea869802ec3802fc Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 6 May 2006 18:36:32 +0000 Subject: 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 --- tests/modeltests/basic/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/modeltests/basic') 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. -- cgit v1.3