Skip to content

Commit

Permalink
newforms-admin: Added some tests for CheckboxInput._has_changed.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
brosner committed Apr 29, 2008
1 parent 0ce76a9 commit c9c714f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/regressiontests/forms/widgets.py
Expand Up @@ -292,6 +292,21 @@
>>> w.value_from_datadict({}, {}, 'testing')
False
>>> w._has_changed(None, None)
False
>>> w._has_changed(None, u'')
False
>>> w._has_changed(u'', None)
False
>>> w._has_changed(u'', u'')
False
>>> w._has_changed(False, u'on')
True
>>> w._has_changed(True, u'on')
False
>>> w._has_changed(True, u'')
True
# Select Widget ###############################################################
>>> w = Select()
Expand Down

0 comments on commit c9c714f

Please sign in to comment.