Author: lukeplant
Date: 2006-05-11 16:52:23 -0500 (Thu, 11 May 2006)
New Revision: 2898
Modified:
django/trunk/tests/modeltests/basic/models.py
django/trunk/tests/modeltests/many_to_one_null/models.py
Log:
Updated tests in line with changed exception messages, fixing 2 failures.
Modified: django/trunk/tests/modeltests/basic/models.py
===================================================================
--- django/trunk/tests/modeltests/basic/models.py 2006-05-11 21:51:24 UTC
(rev 2897)
+++ django/trunk/tests/modeltests/basic/models.py 2006-05-11 21:52:23 UTC
(rev 2898)
@@ -197,7 +197,7 @@
>>> 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):
Modified: django/trunk/tests/modeltests/many_to_one_null/models.py
===================================================================
--- django/trunk/tests/modeltests/many_to_one_null/models.py 2006-05-11
21:51:24 UTC (rev 2897)
+++ django/trunk/tests/modeltests/many_to_one_null/models.py 2006-05-11
21:52:23 UTC (rev 2898)
@@ -103,7 +103,7 @@
>>> 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]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---