Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit c4274795391488afca2bf75e6eda32ab22906637 1 parent 4116403
Luke Plant authored May 11, 2006
2  tests/modeltests/basic/models.py
@@ -197,7 +197,7 @@ def __repr__(self):
197 197
 >>> Article.objects.dates('invalid_field', 'year')
198 198
 Traceback (most recent call last):
199 199
    ...
200  
-FieldDoesNotExist: name=invalid_field
  200
+FieldDoesNotExist: Article has no field named 'invalid_field'
201 201
 
202 202
 >>> Article.objects.dates('pub_date', 'bad_kind')
203 203
 Traceback (most recent call last):
2  tests/modeltests/many_to_one_null/models.py
@@ -103,7 +103,7 @@ class Meta:
103 103
 >>> r.article_set.remove(a4)
104 104
 Traceback (most recent call last):
105 105
 ...
106  
-DoesNotExist: 'Fourth' is not related to 'John Smith'.
  106
+DoesNotExist: 'Article object' is not related to 'Reporter object'.
107 107
 
108 108
 >>> r2.article_set.all()
109 109
 [Fourth]

0 notes on commit c427479

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