Django

Code

Changeset 379

Show
Ignore:
Timestamp:
08/01/05 16:32:45 (3 years ago)
Author:
jacob
Message:

Modified custom_methods test to use date() instead of datetime()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/testapp/models/custom_methods.py

    r363 r379  
    5555API_TESTS = """ 
    5656# Create a couple of Articles. 
    57 >>> from datetime import datetime 
    58 >>> a = articles.Article(id=None, headline='Area man programs in Python', pub_date=datetime(2005, 7, 27)) 
     57>>> from datetime import date 
     58>>> a = articles.Article(id=None, headline='Area man programs in Python', pub_date=date(2005, 7, 27)) 
    5959>>> a.save() 
    60 >>> b = articles.Article(id=None, headline='Beatles reunite', pub_date=datetime(2005, 7, 27)) 
     60>>> b = articles.Article(id=None, headline='Beatles reunite', pub_date=date(2005, 7, 27)) 
    6161>>> b.save() 
    6262