Django

Code

Changeset 8051

Show
Ignore:
Timestamp:
07/22/08 00:15:40 (6 months ago)
Author:
mtredinnick
Message:

Fixed the tests from [8033] to work for the PostgreSQL backends (the primary
key value isn't guaranteed to be the same across all backends). Still some
breakage on MySQL because of the way it treats booleans, but that's another
issue.

Refs #6755.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/model_inheritance_regress/models.py

    r8033 r8051  
    163163>>> r = Restaurant(serves_pizza=False) 
    164164>>> r.save() 
    165 >>> r.id 
    166 
    167 >>> r.place_ptr_id 
    168 
    169 >>> r = Restaurant(place_ptr_id=3, serves_pizza=True) 
     165>>> r.id == r.place_ptr_id 
     166True 
     167>>> orig_id = r.id 
     168>>> r = Restaurant(place_ptr_id=orig_id, serves_pizza=True) 
    170169>>> r.save() 
    171 >>> r.id 
    172 
    173 >>> r.place_ptr_id 
    174 
    175  
     170>>> r.id == orig_id 
     171True 
     172>>> r.id == r.place_ptr_id 
     173True 
    176174 
    177175"""}