Added equality test to 'basic' model unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a47794c824
commit
6451118946
|
@ -65,4 +65,9 @@ ArticleDoesNotExist: Article does not exist for {'id__exact': 2}
|
|||
>>> articles.get_object(pk=1)
|
||||
<Article object>
|
||||
|
||||
# Model instances of the same type and same ID are considered equal.
|
||||
>>> a = articles.get_object(pk=1)
|
||||
>>> b = articles.get_object(pk=1)
|
||||
>>> a == b
|
||||
True
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue