From c4274795391488afca2bf75e6eda32ab22906637 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Thu, 11 May 2006 21:52:23 +0000 Subject: [PATCH] Updated tests in line with changed exception messages, fixing 2 failures. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2898 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/modeltests/basic/models.py | 2 +- tests/modeltests/many_to_one_null/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/modeltests/basic/models.py b/tests/modeltests/basic/models.py index 16df447c91..0470d6bc9b 100644 --- a/tests/modeltests/basic/models.py +++ b/tests/modeltests/basic/models.py @@ -197,7 +197,7 @@ TypeError: dates() takes at least 3 arguments (1 given) >>> Article.objects.dates('invalid_field', 'year') Traceback (most recent call last): ... -FieldDoesNotExist: name=invalid_field +FieldDoesNotExist: Article has no field named 'invalid_field' >>> Article.objects.dates('pub_date', 'bad_kind') Traceback (most recent call last): diff --git a/tests/modeltests/many_to_one_null/models.py b/tests/modeltests/many_to_one_null/models.py index 6818493ee3..638382107a 100644 --- a/tests/modeltests/many_to_one_null/models.py +++ b/tests/modeltests/many_to_one_null/models.py @@ -103,7 +103,7 @@ None >>> r.article_set.remove(a4) Traceback (most recent call last): ... -DoesNotExist: 'Fourth' is not related to 'John Smith'. +DoesNotExist: 'Article object' is not related to 'Reporter object'. >>> r2.article_set.all() [Fourth]