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

Method test_bad_nesting

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

Source from the content-addressed store, hash-verified

271 self._run_check('&#x', [('data', '&#x')], convert_charrefs=True)
272
273 def test_bad_nesting(self):
274 # Strangely, this *is* supposed to test that overlapping
275 # elements are allowed. HTMLParser is more geared toward
276 # lexing the input that parsing the structure.
277 self._run_check("<a><b></a></b>", [
278 ("starttag", "a", []),
279 ("starttag", "b", []),
280 ("endtag", "a"),
281 ("endtag", "b"),
282 ])
283
284 def test_bare_ampersands(self):
285 self._run_check("this text & contains & ampersands &", [

Callers

nothing calls this directly

Calls 1

_run_checkMethod · 0.80

Tested by

no test coverage detected