1
0
mirror of https://github.com/django/django.git synced 2025-01-03 06:55:47 +00:00

Refs #34655 -- Made cosmetic edits to RadioSelect tests.

Follow up to f9c5958b8f.
This commit is contained in:
nessita 2023-07-31 15:17:10 -03:00 committed by GitHub
parent 22b0b73c77
commit 1ad7761ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ class RadioSelectTest(ChoiceWidgetTest):
def test_compare_to_str(self): def test_compare_to_str(self):
""" """
The value is compared to its str() The value is compared to its str().
""" """
html = """ html = """
<div> <div>
@ -235,21 +235,21 @@ class RadioSelectTest(ChoiceWidgetTest):
yield (i, i) yield (i, i)
html = """ html = """
<div> <div>
<div> <div>
<label><input type="radio" name="num" value="0">0</label> <label><input type="radio" name="num" value="0">0</label>
</div> </div>
<div> <div>
<label><input type="radio" name="num" value="1">1</label> <label><input type="radio" name="num" value="1">1</label>
</div> </div>
<div> <div>
<label><input type="radio" name="num" value="2">2</label> <label><input type="radio" name="num" value="2">2</label>
</div> </div>
<div> <div>
<label><input checked type="radio" name="num" value="3">3</label> <label><input checked type="radio" name="num" value="3">3</label>
</div> </div>
</div> </div>
""" """
widget = self.widget(choices=get_choices()) widget = self.widget(choices=get_choices())
self.check_html(widget, "num", 3, html=html) self.check_html(widget, "num", 3, html=html)
@ -292,7 +292,7 @@ class RadioSelectTest(ChoiceWidgetTest):
def test_choices_optgroup(self): def test_choices_optgroup(self):
""" """
Choices can be nested one level in order to create HTML optgroups Choices can be nested one level in order to create HTML optgroups.
""" """
html = """ html = """
<div> <div>