mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Refs #27804 -- Used subTest() in HTMLEqualTests.test_self_closing_tags.
This commit is contained in:
parent
e2feea5fc4
commit
de6d3afb97
@ -542,6 +542,7 @@ class HTMLEqualTests(SimpleTestCase):
|
||||
'base', 'col',
|
||||
)
|
||||
for tag in self_closing_tags:
|
||||
with self.subTest(tag):
|
||||
dom = parse_html('<p>Hello <%s> world</p>' % tag)
|
||||
self.assertEqual(len(dom.children), 3)
|
||||
self.assertEqual(dom[0], 'Hello')
|
||||
|
Loading…
x
Reference in New Issue
Block a user