Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored July 29, 2005

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  tests/testapp/models/basic.py
5  tests/testapp/models/basic.py
@@ -65,4 +65,9 @@ class Article(meta.Model):
65 65
 >>> articles.get_object(pk=1)
66 66
 <Article object>
67 67
 
  68
+# Model instances of the same type and same ID are considered equal.
  69
+>>> a = articles.get_object(pk=1)
  70
+>>> b = articles.get_object(pk=1)
  71
+>>> a == b
  72
+True
68 73
 """

0 notes on commit 6451118

Please sign in to comment.
Something went wrong with that request. Please try again.