Updated tests in line with changed exception messages, fixing 2 failures.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2898 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4116403a55
commit
c427479539
|
@ -197,7 +197,7 @@ TypeError: dates() takes at least 3 arguments (1 given)
|
||||||
>>> Article.objects.dates('invalid_field', 'year')
|
>>> Article.objects.dates('invalid_field', 'year')
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
FieldDoesNotExist: name=invalid_field
|
FieldDoesNotExist: Article has no field named 'invalid_field'
|
||||||
|
|
||||||
>>> Article.objects.dates('pub_date', 'bad_kind')
|
>>> Article.objects.dates('pub_date', 'bad_kind')
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
|
|
|
@ -103,7 +103,7 @@ None
|
||||||
>>> r.article_set.remove(a4)
|
>>> r.article_set.remove(a4)
|
||||||
Traceback (most recent call last):
|
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()
|
>>> r2.article_set.all()
|
||||||
[Fourth]
|
[Fourth]
|
||||||
|
|
Loading…
Reference in New Issue