MCPcopy
hub / github.com/django/django / test_root_element_escaped_html

Method test_root_element_escaped_html

tests/test_utils/tests.py:999–1002  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

997 self.assertEqual(dom2.count(dom1), 2)
998
999 def test_root_element_escaped_html(self):
1000 html = "<br>"
1001 parsed = parse_html(html)
1002 self.assertEqual(str(parsed), html)
1003
1004 def test_parsing_errors(self):
1005 with self.assertRaises(AssertionError):

Callers

nothing calls this directly

Calls 1

parse_htmlFunction · 0.90

Tested by

no test coverage detected