summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2005-08-01 21:32:45 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2005-08-01 21:32:45 +0000
commita9331211c8566480e4367ee58770f62d0ac7366b (patch)
treee11f58e0018a407c96b1b3e0fffa5d29915d4136 /tests
parente0c3dd3318f6f4895554521c6bf69676635b1937 (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/testapp/models/custom_methods.py6
1 files 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.