Django

Code

Changeset 1514

Show
Ignore:
Timestamp:
12/01/05 00:01:13 (3 years ago)
Author:
adrian
Message:

Fixed bug in basic.py model unit tests caused by [1511] -- the special-case MySQL thing needs to be at the end of the tests

Files:

Legend:

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

    r1511 r1514  
    1591598L 
    160160 
    161 # You can manually specify the primary key when creating a new objet 
    162 >>> a101 = articles.Article(id=101, headline='Article 101', pub_date=datetime(2005, 7, 31, 12, 30, 45)) 
    163 >>> a101.save() 
    164 >>> a101 = articles.get_object(pk=101) 
    165 >>> a101.headline 
    166 'Article 101' 
    167  
    168161""" 
    169162 
     
    190183datetime.datetime(2005, 7, 31, 12, 30, 45) 
    191184""" 
     185 
     186API_TESTS += """ 
     187 
     188# You can manually specify the primary key when creating a new objet 
     189>>> a101 = articles.Article(id=101, headline='Article 101', pub_date=datetime(2005, 7, 31, 12, 30, 45)) 
     190>>> a101.save() 
     191>>> a101 = articles.get_object(pk=101) 
     192>>> a101.headline 
     193'Article 101' 
     194"""