Browse files

Updated tests in line with changed exception messages, fixing 2 failu…

…res.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2898 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 4116403 commit c4274795391488afca2bf75e6eda32ab22906637 @spookylukey spookylukey committed May 11, 2006
Showing with 2 additions and 2 deletions.
  1. +1 −1 tests/modeltests/basic/models.py
  2. +1 −1 tests/modeltests/many_to_one_null/models.py
View
2 tests/modeltests/basic/models.py
@@ -197,7 +197,7 @@ def __repr__(self):
>>> 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):
View
2 tests/modeltests/many_to_one_null/models.py
@@ -103,7 +103,7 @@ class Meta:
>>> 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]

0 comments on commit c427479

Please sign in to comment.