summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms/widgets.py
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2008-03-17 17:55:16 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2008-03-17 17:55:16 +0000
commit93c45b570427b0a0f875a6f551d229f20e2ac5ee (patch)
treee2a4990f9426b379fd2bbf3177098930bbba014d /tests/regressiontests/forms/widgets.py
parent40d55238b86ce88d6fa392c931ad3726dd5c66eb (diff)
newforms-admin: Cleaned up the implementation and APIs of all the formset classes. Backwards-incompatible.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/forms/widgets.py')
-rw-r--r--tests/regressiontests/forms/widgets.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/regressiontests/forms/widgets.py b/tests/regressiontests/forms/widgets.py
index ccfddc9fcd..0e69602103 100644
--- a/tests/regressiontests/forms/widgets.py
+++ b/tests/regressiontests/forms/widgets.py
@@ -292,12 +292,6 @@ checkboxes).
>>> w.value_from_datadict({}, {}, 'testing')
False
-The CheckboxInput widget will always be empty when there is a False value
->>> w.is_empty(False)
-True
->>> w.is_empty(True)
-False
-
# Select Widget ###############################################################
>>> w = Select()
@@ -459,15 +453,6 @@ over multiple times without getting consumed:
<option value="3" selected="selected">No</option>
</select>
-The NullBooleanSelect widget will always be empty when Unknown or No is selected
-as its value. This is to stay compliant with the CheckboxInput behavior
->>> w.is_empty(False)
-True
->>> w.is_empty(None)
-True
->>> w.is_empty(True)
-False
-
""" + \
r""" # [This concatenation is to keep the string below the jython's 32K limit].
# SelectMultiple Widget #######################################################
@@ -910,16 +895,6 @@ u'<input id="foo_0" type="text" class="big" value="john" name="name_0" /><br /><
>>> w.render('name', ['john', 'lennon'])
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" />'
-The MultiWidget will be empty only when all widgets are considered empty.
->>> w.is_empty(['john', 'lennon'])
-False
->>> w.is_empty(['john', ''])
-False
->>> w.is_empty(['', ''])
-True
->>> w.is_empty([None, None])
-True
-
# SplitDateTimeWidget #########################################################
>>> w = SplitDateTimeWidget()