mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Modified custom_methods test to use date() instead of datetime()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -54,10 +54,10 @@ class Article(meta.Model): | |||||||
|  |  | ||||||
| API_TESTS = """ | API_TESTS = """ | ||||||
| # Create a couple of Articles. | # Create a couple of Articles. | ||||||
| >>> from datetime import datetime | >>> from datetime import date | ||||||
| >>> a = articles.Article(id=None, headline='Area man programs in Python', pub_date=datetime(2005, 7, 27)) | >>> a = articles.Article(id=None, headline='Area man programs in Python', pub_date=date(2005, 7, 27)) | ||||||
| >>> a.save() | >>> a.save() | ||||||
| >>> b = articles.Article(id=None, headline='Beatles reunite', pub_date=datetime(2005, 7, 27)) | >>> b = articles.Article(id=None, headline='Beatles reunite', pub_date=date(2005, 7, 27)) | ||||||
| >>> b.save() | >>> b.save() | ||||||
|  |  | ||||||
| # Test the custom methods. | # Test the custom methods. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user