Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c4274795391488afca2bf75e6eda32ab22906637 1 parent 4116403
@spookylukey spookylukey authored
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]
Please sign in to comment.
Something went wrong with that request. Please try again.