Changeset 7518
- Timestamp:
- 05/05/08 13:50:03 (5 days ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/tests/regressiontests/forms/widgets.py
r7517 r7518 964 964 965 965 >>> w = MyMultiWidget(widgets=(TextInput(), TextInput())) 966 966 967 # test with no initial data 967 968 >>> w._has_changed(None, [u'john', u'lennon']) 968 969 True 970 969 971 # test when the data is the same as initial 970 972 >>> w._has_changed(u'john__lennon', [u'john', u'lennon']) 971 973 False 974 972 975 # test when the first widget's data has changed 973 976 >>> w._has_changed(u'john__lennon', [u'alfred', u'lennon']) 974 977 True 978 975 979 # test when the last widget's data has changed. this ensures that it is not 976 980 # short circuiting while testing the widgets.
