Django

Code

Changeset 343

Show
Ignore:
Timestamp:
07/29/05 15:29:59 (3 years ago)
Author:
adrian
Message:

Added equality test to 'basic' model unit test

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/testapp/models/basic.py

    r336 r343  
    6666<Article object> 
    6767 
     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 
     72True 
    6873"""