MCPcopy Index your code
hub / github.com/python/cpython / test_malformatted_charref

Method test_malformatted_charref

Lib/test/test_htmlparser.py:177–188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 ])
176
177 def test_malformatted_charref(self):
178 self._run_check("<p>&#bad;</p>", [
179 ("starttag", "p", []),
180 ("data", "&#bad;"),
181 ("endtag", "p"),
182 ])
183 # add the [] as a workaround to avoid buffering (see #20288)
184 self._run_check(["<div>&#bad;</div>"], [
185 ("starttag", "div", []),
186 ("data", "&#bad;"),
187 ("endtag", "div"),
188 ])
189
190 def test_unclosed_entityref(self):
191 self._run_check('&gt &lt;', [('entityref', 'gt'), ('data', ' '), ('entityref', 'lt')],

Callers

nothing calls this directly

Calls 1

_run_checkMethod · 0.80

Tested by

no test coverage detected