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:
Adrian Holovaty 2005-07-29 20:29:59 +00:00
parent a47794c824
commit 6451118946
1 changed files with 5 additions and 0 deletions

View File

@ -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
"""