MCPcopy
hub / github.com/django/django / test_non_boolean_attibutes

Method test_non_boolean_attibutes

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

Source from the content-addressed store, hash-verified

825 self.assertEqual(str(parse_html(html3)), "<input checked>")
826
827 def test_non_boolean_attibutes(self):
828 html1 = "<input value>"
829 html2 = '<input value="">'
830 html3 = '<input value="value">'
831 self.assertHTMLEqual(html1, html2)
832 self.assertHTMLNotEqual(html1, html3)
833 self.assertEqual(str(parse_html(html1)), '<input value="">')
834 self.assertEqual(str(parse_html(html2)), '<input value="">')
835
836 def test_normalize_refs(self):
837 pairs = [

Callers

nothing calls this directly

Calls 3

parse_htmlFunction · 0.90
assertHTMLEqualMethod · 0.80
assertHTMLNotEqualMethod · 0.80

Tested by

no test coverage detected