mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Added equality test to 'basic' model unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -65,4 +65,9 @@ ArticleDoesNotExist: Article does not exist for {'id__exact': 2} | ||||
| >>> 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 | ||||
| """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user