Skip to content
Browse files

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


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 4116403 commit c4274795391488afca2bf75e6eda32ab22906637 @spookylukey spookylukey committed
2  tests/modeltests/basic/
@@ -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):
2  tests/modeltests/many_to_one_null/
@@ -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()

0 comments on commit c427479

Please sign in to comment.
Something went wrong with that request. Please try again.