Django

Code

Changeset 8104

Show
Ignore:
Timestamp:
07/27/08 08:55:35 (4 months ago)
Author:
russellm
Message:

Removed some model saves from [8102] which were causing test failures under Postgres. Thanks to Ramiro Morales for the report (via IRC).

Files:

Legend:

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

    r8102 r8104  
    5050# Test a top level value 
    5151>>> w.c = 0 
    52 >>> w.save() 
    5352>>> w.get_c_display() 
    5453u'Other' 
     
    5655# Test an invalid data value 
    5756>>> w.c = 9 
    58 >>> w.save() 
    5957>>> w.get_c_display() 
    60589 
     
    6260# Test a blank data value 
    6361>>> w.c = None 
    64 >>> w.save() 
    6562>>> print w.get_c_display() 
    6663None 
     
    6865# Test an empty data value 
    6966>>> w.c = '' 
    70 >>> w.save() 
    7167>>> w.get_c_display() 
    7268u''