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:
Jacob Kaplan-Moss 2005-08-01 21:32:45 +00:00
parent e0c3dd3318
commit a9331211c8
1 changed files with 3 additions and 3 deletions

View File

@ -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.