Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | """Tests to ensure that the html.parser tree builder generates good |
| 2 | trees.""" |
| 3 | |
| 4 | from bs4.testing import SoupTest, HTMLTreeBuilderSmokeTest |
| 5 | from bs4.builder import HTMLParserTreeBuilder |
| 6 | |
| 7 | class HTMLParserTreeBuilderSmokeTest(SoupTest, HTMLTreeBuilderSmokeTest): |
| 8 | |
| 9 | @property |
| 10 | def default_builder(self): |
| 11 | return HTMLParserTreeBuilder() |
| 12 | |
| 13 | def test_namespaced_system_doctype(self): |
| 14 | # html.parser can't handle namespaced doctypes, so skip this one. |
| 15 | pass |
| 16 | |
| 17 | def test_namespaced_public_doctype(self): |
| 18 | # html.parser can't handle namespaced doctypes, so skip this one. |
| 19 | pass |