[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/Browser/tests - testConfigurationStatusWidget.py:1.4
Marius Gedminas
mgedmin@codeworks.lt
Thu, 12 Dec 2002 10:16:39 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv22006
Modified Files:
testConfigurationStatusWidget.py
Log Message:
Add label tags in ConfigurationStatusWidget
=== Zope3/lib/python/Zope/App/OFS/Services/Browser/tests/testConfigurationStatusWidget.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/OFS/Services/Browser/tests/testConfigurationStatusWidget.py:1.3 Sun Dec 1 05:30:33 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/Browser/tests/testConfigurationStatusWidget.py Thu Dec 12 10:16:39 2002
@@ -37,48 +37,52 @@
text = ' '.join(widget().split())
self.assertEqual(
text,
- '<input type="radio" name="f.status" value="Unregistered" checked>'
- ' Unregistered '
- '<input type="radio" name="f.status" value="Registered">'
- ' Registered '
- '<input type="radio" name="f.status" value="Active">'
- ' Active'
+ '<label><input type="radio" name="f.status" value="Unregistered"'
+ ' checked>'
+ ' Unregistered</label> '
+ '<label><input type="radio" name="f.status" value="Registered">'
+ ' Registered</label> '
+ '<label><input type="radio" name="f.status" value="Active">'
+ ' Active</label>'
)
-
+
request.form['f.status'] = u'Registered'
text = ' '.join(widget().split())
self.assertEqual(
text,
- '<input type="radio" name="f.status" value="Unregistered">'
- ' Unregistered '
- '<input type="radio" name="f.status" value="Registered" checked>'
- ' Registered '
- '<input type="radio" name="f.status" value="Active">'
- ' Active'
+ '<label><input type="radio" name="f.status" value="Unregistered">'
+ ' Unregistered</label> '
+ '<label><input type="radio" name="f.status" value="Registered"'
+ ' checked>'
+ ' Registered</label> '
+ '<label><input type="radio" name="f.status" value="Active">'
+ ' Active</label>'
)
widget.setData(u"Active")
text = ' '.join(widget().split())
self.assertEqual(
text,
- '<input type="radio" name="f.status" value="Unregistered">'
- ' Unregistered '
- '<input type="radio" name="f.status" value="Registered">'
- ' Registered '
- '<input type="radio" name="f.status" value="Active" checked>'
- ' Active'
+ '<label><input type="radio" name="f.status" value="Unregistered">'
+ ' Unregistered</label> '
+ '<label><input type="radio" name="f.status" value="Registered">'
+ ' Registered</label> '
+ '<label><input type="radio" name="f.status" value="Active"'
+ ' checked>'
+ ' Active</label>'
)
widget.setData(u"Unregistered")
text = ' '.join(widget().split())
self.assertEqual(
text,
- '<input type="radio" name="f.status" value="Unregistered" checked>'
- ' Unregistered '
- '<input type="radio" name="f.status" value="Registered">'
- ' Registered '
- '<input type="radio" name="f.status" value="Active">'
- ' Active'
+ '<label><input type="radio" name="f.status" value="Unregistered"'
+ ' checked>'
+ ' Unregistered</label> '
+ '<label><input type="radio" name="f.status" value="Registered">'
+ ' Registered</label> '
+ '<label><input type="radio" name="f.status" value="Active">'
+ ' Active</label>'
)