[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>'
-            '&nbsp;Unregistered '
-            '<input type="radio" name="f.status" value="Registered">'
-            '&nbsp;Registered '
-            '<input type="radio" name="f.status" value="Active">'
-            '&nbsp;Active'
+            '<label><input type="radio" name="f.status" value="Unregistered"'
+            ' checked>'
+            '&nbsp;Unregistered</label> '
+            '<label><input type="radio" name="f.status" value="Registered">'
+            '&nbsp;Registered</label> '
+            '<label><input type="radio" name="f.status" value="Active">'
+            '&nbsp;Active</label>'
             )
-        
+
         request.form['f.status'] = u'Registered'
         text = ' '.join(widget().split())
         self.assertEqual(
             text,
-            '<input type="radio" name="f.status" value="Unregistered">'
-            '&nbsp;Unregistered '
-            '<input type="radio" name="f.status" value="Registered" checked>'
-            '&nbsp;Registered '
-            '<input type="radio" name="f.status" value="Active">'
-            '&nbsp;Active'
+            '<label><input type="radio" name="f.status" value="Unregistered">'
+            '&nbsp;Unregistered</label> '
+            '<label><input type="radio" name="f.status" value="Registered"'
+            ' checked>'
+            '&nbsp;Registered</label> '
+            '<label><input type="radio" name="f.status" value="Active">'
+            '&nbsp;Active</label>'
             )
 
         widget.setData(u"Active")
         text = ' '.join(widget().split())
         self.assertEqual(
             text,
-            '<input type="radio" name="f.status" value="Unregistered">'
-            '&nbsp;Unregistered '
-            '<input type="radio" name="f.status" value="Registered">'
-            '&nbsp;Registered '
-            '<input type="radio" name="f.status" value="Active" checked>'
-            '&nbsp;Active'
+            '<label><input type="radio" name="f.status" value="Unregistered">'
+            '&nbsp;Unregistered</label> '
+            '<label><input type="radio" name="f.status" value="Registered">'
+            '&nbsp;Registered</label> '
+            '<label><input type="radio" name="f.status" value="Active"'
+            ' checked>'
+            '&nbsp;Active</label>'
             )
 
         widget.setData(u"Unregistered")
         text = ' '.join(widget().split())
         self.assertEqual(
             text,
-            '<input type="radio" name="f.status" value="Unregistered" checked>'
-            '&nbsp;Unregistered '
-            '<input type="radio" name="f.status" value="Registered">'
-            '&nbsp;Registered '
-            '<input type="radio" name="f.status" value="Active">'
-            '&nbsp;Active'
+            '<label><input type="radio" name="f.status" value="Unregistered"'
+            ' checked>'
+            '&nbsp;Unregistered</label> '
+            '<label><input type="radio" name="f.status" value="Registered">'
+            '&nbsp;Registered</label> '
+            '<label><input type="radio" name="f.status" value="Active">'
+            '&nbsp;Active</label>'
             )