Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit a9331211c8566480e4367ee58770f62d0ac7366b 1 parent e0c3dd3
@jacobian jacobian authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/testapp/models/custom_methods.py
View
6 tests/testapp/models/custom_methods.py
@@ -54,10 +54,10 @@ def get_articles_from_same_day_2(self):
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.
Please sign in to comment.
Something went wrong with that request. Please try again.