summaryrefslogtreecommitdiff
path: root/tests/forms_tests/widget_tests/test_radioselect.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-01-20 23:09:10 -0800
committerTim Graham <timograham@gmail.com>2018-01-21 02:09:10 -0500
commitff05de760cc4ef4c7f188e163c722ec3bc1f0cbf (patch)
treeba133d0ecea7521935c98cf1c058df4e6a9ff233 /tests/forms_tests/widget_tests/test_radioselect.py
parent4b0f39d9fb2033a9597e30ac13af162440b82ebc (diff)
Fixed #29038 -- Removed closing slash from HTML void tags.
Diffstat (limited to 'tests/forms_tests/widget_tests/test_radioselect.py')
-rw-r--r--tests/forms_tests/widget_tests/test_radioselect.py54
1 files changed, 27 insertions, 27 deletions
diff --git a/tests/forms_tests/widget_tests/test_radioselect.py b/tests/forms_tests/widget_tests/test_radioselect.py
index 05f980eb36..d0a70c7953 100644
--- a/tests/forms_tests/widget_tests/test_radioselect.py
+++ b/tests/forms_tests/widget_tests/test_radioselect.py
@@ -13,11 +13,11 @@ class RadioSelectTest(WidgetTest):
choices = (('', '------'),) + self.beatles
self.check_html(self.widget(choices=choices), 'beatle', 'J', html=(
"""<ul>
- <li><label><input type="radio" name="beatle" value="" /> ------</label></li>
- <li><label><input checked type="radio" name="beatle" value="J" /> John</label></li>
- <li><label><input type="radio" name="beatle" value="P" /> Paul</label></li>
- <li><label><input type="radio" name="beatle" value="G" /> George</label></li>
- <li><label><input type="radio" name="beatle" value="R" /> Ringo</label></li>
+ <li><label><input type="radio" name="beatle" value=""> ------</label></li>
+ <li><label><input checked type="radio" name="beatle" value="J"> John</label></li>
+ <li><label><input type="radio" name="beatle" value="P"> Paul</label></li>
+ <li><label><input type="radio" name="beatle" value="G"> George</label></li>
+ <li><label><input type="radio" name="beatle" value="R"> Ringo</label></li>
</ul>"""
))
@@ -30,19 +30,19 @@ class RadioSelectTest(WidgetTest):
html = """
<ul id="media">
<li>
- <label for="media_0"><input id="media_0" name="nestchoice" type="radio" value="unknown" /> Unknown</label>
+ <label for="media_0"><input id="media_0" name="nestchoice" type="radio" value="unknown"> Unknown</label>
</li>
<li>Audio<ul id="media_1">
<li>
- <label for="media_1_0"><input id="media_1_0" name="nestchoice" type="radio" value="vinyl" /> Vinyl</label>
+ <label for="media_1_0"><input id="media_1_0" name="nestchoice" type="radio" value="vinyl"> Vinyl</label>
</li>
- <li><label for="media_1_1"><input id="media_1_1" name="nestchoice" type="radio" value="cd" /> CD</label></li>
+ <li><label for="media_1_1"><input id="media_1_1" name="nestchoice" type="radio" value="cd"> CD</label></li>
</ul></li>
<li>Video<ul id="media_2">
- <li><label for="media_2_0"><input id="media_2_0" name="nestchoice" type="radio" value="vhs" /> VHS</label></li>
+ <li><label for="media_2_0"><input id="media_2_0" name="nestchoice" type="radio" value="vhs"> VHS</label></li>
<li>
<label for="media_2_1">
- <input checked id="media_2_1" name="nestchoice" type="radio" value="dvd" /> DVD
+ <input checked id="media_2_1" name="nestchoice" type="radio" value="dvd"> DVD
</label>
</li>
</ul></li>
@@ -62,11 +62,11 @@ class RadioSelectTest(WidgetTest):
html = """
<ul id="foo">
<li>
- <label for="foo_0"><input checked type="radio" id="foo_0" value="J" name="beatle" /> John</label>
+ <label for="foo_0"><input checked type="radio" id="foo_0" value="J" name="beatle"> John</label>
</li>
- <li><label for="foo_1"><input type="radio" id="foo_1" value="P" name="beatle" /> Paul</label></li>
- <li><label for="foo_2"><input type="radio" id="foo_2" value="G" name="beatle" /> George</label></li>
- <li><label for="foo_3"><input type="radio" id="foo_3" value="R" name="beatle" /> Ringo</label></li>
+ <li><label for="foo_1"><input type="radio" id="foo_1" value="P" name="beatle"> Paul</label></li>
+ <li><label for="foo_2"><input type="radio" id="foo_2" value="G" name="beatle"> George</label></li>
+ <li><label for="foo_3"><input type="radio" id="foo_3" value="R" name="beatle"> Ringo</label></li>
</ul>
"""
self.check_html(widget, 'beatle', 'J', html=html)
@@ -79,11 +79,11 @@ class RadioSelectTest(WidgetTest):
html = """
<ul id="bar">
<li>
- <label for="bar_0"><input checked type="radio" id="bar_0" value="J" name="beatle" /> John</label>
+ <label for="bar_0"><input checked type="radio" id="bar_0" value="J" name="beatle"> John</label>
</li>
- <li><label for="bar_1"><input type="radio" id="bar_1" value="P" name="beatle" /> Paul</label></li>
- <li><label for="bar_2"><input type="radio" id="bar_2" value="G" name="beatle" /> George</label></li>
- <li><label for="bar_3"><input type="radio" id="bar_3" value="R" name="beatle" /> Ringo</label></li>
+ <li><label for="bar_1"><input type="radio" id="bar_1" value="P" name="beatle"> Paul</label></li>
+ <li><label for="bar_2"><input type="radio" id="bar_2" value="G" name="beatle"> George</label></li>
+ <li><label for="bar_3"><input type="radio" id="bar_3" value="R" name="beatle"> Ringo</label></li>
</ul>
"""
self.check_html(self.widget(choices=self.beatles), 'beatle', 'J', attrs={'id': 'bar'}, html=html)
@@ -95,10 +95,10 @@ class RadioSelectTest(WidgetTest):
"""
html = """
<ul class="bar">
- <li><label><input checked type="radio" class="bar" value="J" name="beatle" /> John</label></li>
- <li><label><input type="radio" class="bar" value="P" name="beatle" /> Paul</label></li>
- <li><label><input type="radio" class="bar" value="G" name="beatle" /> George</label></li>
- <li><label><input type="radio" class="bar" value="R" name="beatle" /> Ringo</label></li>
+ <li><label><input checked type="radio" class="bar" value="J" name="beatle"> John</label></li>
+ <li><label><input type="radio" class="bar" value="P" name="beatle"> Paul</label></li>
+ <li><label><input type="radio" class="bar" value="G" name="beatle"> George</label></li>
+ <li><label><input type="radio" class="bar" value="R" name="beatle"> Ringo</label></li>
</ul>
"""
self.check_html(self.widget(choices=self.beatles), 'beatle', 'J', attrs={'class': 'bar'}, html=html)
@@ -112,9 +112,9 @@ class RadioSelectTest(WidgetTest):
]
html = """
<ul>
- <li><label><input type="radio" name="number" value="1" /> One</label></li>
- <li><label><input type="radio" name="number" value="1000" /> One thousand</label></li>
- <li><label><input type="radio" name="number" value="1000000" /> One million</label></li>
+ <li><label><input type="radio" name="number" value="1"> One</label></li>
+ <li><label><input type="radio" name="number" value="1000"> One thousand</label></li>
+ <li><label><input type="radio" name="number" value="1000000"> One million</label></li>
</ul>
"""
self.check_html(self.widget(choices=choices), 'number', None, html=html)
@@ -125,8 +125,8 @@ class RadioSelectTest(WidgetTest):
]
html = """
<ul>
- <li><label><input type="radio" name="time" value="00:00:00" /> midnight</label></li>
- <li><label><input type="radio" name="time" value="12:00:00" /> noon</label></li>
+ <li><label><input type="radio" name="time" value="00:00:00"> midnight</label></li>
+ <li><label><input type="radio" name="time" value="12:00:00"> noon</label></li>
</ul>
"""
self.check_html(self.widget(choices=choices), 'time', None, html=html)