From 645111894657f12f0acc8be1f56676a461d81b6d Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 29 Jul 2005 20:29:59 +0000 Subject: [PATCH] Added equality test to 'basic' model unit test git-svn-id: http://code.djangoproject.com/svn/django/trunk@343 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/testapp/models/basic.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/testapp/models/basic.py b/tests/testapp/models/basic.py index 9b9b8082a2..120c356765 100644 --- a/tests/testapp/models/basic.py +++ b/tests/testapp/models/basic.py @@ -65,4 +65,9 @@ ArticleDoesNotExist: Article does not exist for {'id__exact': 2} >>> articles.get_object(pk=1)
+# 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 """