Permalink
Browse files

Added equality test to 'basic' model unit test

git-svn-id: http://code.djangoproject.com/svn/django/trunk@343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a47794c commit 645111894657f12f0acc8be1f56676a461d81b6d @adrianholovaty adrianholovaty committed Jul 29, 2005
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/testapp/models/basic.py
View
5 tests/testapp/models/basic.py
@@ -65,4 +65,9 @@ class Article(meta.Model):
>>> 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
"""

0 comments on commit 6451118

Please sign in to comment.