mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +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) | >>> articles.get_object(pk=1) | ||||||
| <Article object> | <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