From a9331211c8566480e4367ee58770f62d0ac7366b Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 1 Aug 2005 21:32:45 +0000 Subject: [PATCH] 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 --- tests/testapp/models/custom_methods.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testapp/models/custom_methods.py b/tests/testapp/models/custom_methods.py index 9f19314991..f674b9c286 100644 --- a/tests/testapp/models/custom_methods.py +++ b/tests/testapp/models/custom_methods.py @@ -54,10 +54,10 @@ class Article(meta.Model): API_TESTS = """ # Create a couple of Articles. ->>> from datetime import datetime ->>> a = articles.Article(id=None, headline='Area man programs in Python', pub_date=datetime(2005, 7, 27)) +>>> from datetime import date +>>> a = articles.Article(id=None, headline='Area man programs in Python', pub_date=date(2005, 7, 27)) >>> 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() # Test the custom methods.