menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right tests chevron_right test_htmlparser.py
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    test_htmlparser.py
    612 B / 2021-07-04 19:32:24
        """Tests to ensure that the html.parser tree builder generates good
    trees."""
    
    from bs4.testing import SoupTest, HTMLTreeBuilderSmokeTest
    from bs4.builder import HTMLParserTreeBuilder
    
    class HTMLParserTreeBuilderSmokeTest(SoupTest, HTMLTreeBuilderSmokeTest):
    
        @property
        def default_builder(self):
            return HTMLParserTreeBuilder()
    
        def test_namespaced_system_doctype(self):
            # html.parser can't handle namespaced doctypes, so skip this one.
            pass
    
        def test_namespaced_public_doctype(self):
            # html.parser can't handle namespaced doctypes, so skip this one.
            pass
    
    
    links
    file_download