1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #32338 -- Added Boundfield.legend_tag().

This commit is contained in:
David Smith
2021-11-06 06:50:29 +00:00
committed by Mariusz Felisiak
parent 81739a45b5
commit eba9a9b7f7
11 changed files with 188 additions and 24 deletions

View File

@@ -185,3 +185,4 @@ class CheckboxSelectMultipleTest(WidgetTest):
bound_field = TestForm()['f']
self.assertEqual(bound_field.field.widget.id_for_label('id'), '')
self.assertEqual(bound_field.label_tag(), '<label>F:</label>')
self.assertEqual(bound_field.legend_tag(), '<legend>F:</legend>')