diff options
| author | Brian Rosner <brosner@gmail.com> | 2008-05-05 18:50:03 +0000 |
|---|---|---|
| committer | Brian Rosner <brosner@gmail.com> | 2008-05-05 18:50:03 +0000 |
| commit | d121e4a4460d872a5f8e276206b5f4036ca6db28 (patch) | |
| tree | 0c3e84dcee1430f7a839e0d19162737c6c806d47 /tests/regressiontests | |
| parent | f793f27df0695d5ff82f947694546b6e5ae6263a (diff) | |
newforms-admin: Added a newline between expected output and comments to let the tests pass again.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests')
| -rw-r--r-- | tests/regressiontests/forms/widgets.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/forms/widgets.py b/tests/regressiontests/forms/widgets.py index 3ebf0b5a2f..2734efc274 100644 --- a/tests/regressiontests/forms/widgets.py +++ b/tests/regressiontests/forms/widgets.py @@ -963,15 +963,19 @@ u'<input id="foo_0" type="text" class="big" value="john" name="name_0" /><br />< u'<input id="bar_0" type="text" class="big" value="john" name="name_0" /><br /><input id="bar_1" type="text" class="small" value="lennon" name="name_1" />' >>> w = MyMultiWidget(widgets=(TextInput(), TextInput())) + # test with no initial data >>> w._has_changed(None, [u'john', u'lennon']) True + # test when the data is the same as initial >>> w._has_changed(u'john__lennon', [u'john', u'lennon']) False + # test when the first widget's data has changed >>> w._has_changed(u'john__lennon', [u'alfred', u'lennon']) True + # test when the last widget's data has changed. this ensures that it is not # short circuiting while testing the widgets. >>> w._has_changed(u'john__lennon', [u'john', u'denver']) |
