Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 645111894657f12f0acc8be1f56676a461d81b6d 1 parent a47794c
@adrianholovaty adrianholovaty authored
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
"""
Please sign in to comment.
Something went wrong with that request. Please try again.