mirror of
https://github.com/django/django.git
synced 2025-01-12 03:15:47 +00:00
Removed some model saves from [8102] which were causing test failures under Postgres. Thanks to Ramiro Morales for the report (via IRC).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
830b750131
commit
12eba9efc1
@ -49,25 +49,21 @@ u'First'
|
|||||||
|
|
||||||
# Test a top level value
|
# Test a top level value
|
||||||
>>> w.c = 0
|
>>> w.c = 0
|
||||||
>>> w.save()
|
|
||||||
>>> w.get_c_display()
|
>>> w.get_c_display()
|
||||||
u'Other'
|
u'Other'
|
||||||
|
|
||||||
# Test an invalid data value
|
# Test an invalid data value
|
||||||
>>> w.c = 9
|
>>> w.c = 9
|
||||||
>>> w.save()
|
|
||||||
>>> w.get_c_display()
|
>>> w.get_c_display()
|
||||||
9
|
9
|
||||||
|
|
||||||
# Test a blank data value
|
# Test a blank data value
|
||||||
>>> w.c = None
|
>>> w.c = None
|
||||||
>>> w.save()
|
|
||||||
>>> print w.get_c_display()
|
>>> print w.get_c_display()
|
||||||
None
|
None
|
||||||
|
|
||||||
# Test an empty data value
|
# Test an empty data value
|
||||||
>>> w.c = ''
|
>>> w.c = ''
|
||||||
>>> w.save()
|
|
||||||
>>> w.get_c_display()
|
>>> w.get_c_display()
|
||||||
u''
|
u''
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user