Django

Code

Changeset 7518

Show
Ignore:
Timestamp:
05/05/08 13:50:03 (5 days ago)
Author:
brosner
Message:

newforms-admin: Added a newline between expected output and comments to let the tests pass again.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin/tests/regressiontests/forms/widgets.py

    r7517 r7518  
    964964 
    965965>>> w = MyMultiWidget(widgets=(TextInput(), TextInput())) 
     966 
    966967# test with no initial data 
    967968>>> w._has_changed(None, [u'john', u'lennon']) 
    968969True 
     970 
    969971# test when the data is the same as initial 
    970972>>> w._has_changed(u'john__lennon', [u'john', u'lennon']) 
    971973False 
     974 
    972975# test when the first widget's data has changed 
    973976>>> w._has_changed(u'john__lennon', [u'alfred', u'lennon']) 
    974977True 
     978 
    975979# test when the last widget's data has changed. this ensures that it is not 
    976980# short circuiting while testing the widgets.