Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
bs4 /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
27
B
-rw-r--r--
2011-08-11 13:28
__init__.pyc
188
B
-rw-r--r--
2019-07-22 18:45
__init__.pyo
188
B
-rw-r--r--
2019-07-22 18:45
test_builder_registry.py
5.45
KB
-rw-r--r--
2014-12-07 14:24
test_builder_registry.pyc
5.86
KB
-rw-r--r--
2019-07-22 18:45
test_builder_registry.pyo
5.86
KB
-rw-r--r--
2019-07-22 18:45
test_docs.py
1.04
KB
-rw-r--r--
2012-05-03 14:09
test_docs.pyc
474
B
-rw-r--r--
2019-07-22 18:45
test_docs.pyo
474
B
-rw-r--r--
2019-07-22 18:45
test_html5lib.py
4.79
KB
-rw-r--r--
2016-12-20 01:24
test_html5lib.pyc
5.89
KB
-rw-r--r--
2019-07-22 18:45
test_html5lib.pyo
5.72
KB
-rw-r--r--
2019-07-22 18:45
test_htmlparser.py
1.69
KB
-rw-r--r--
2018-07-15 12:26
test_htmlparser.pyc
2.92
KB
-rw-r--r--
2019-07-22 18:45
test_htmlparser.pyo
2.92
KB
-rw-r--r--
2019-07-22 18:45
test_lxml.py
2.59
KB
-rw-r--r--
2018-07-28 22:06
test_lxml.pyc
3.52
KB
-rw-r--r--
2019-07-22 18:45
test_lxml.pyo
3.52
KB
-rw-r--r--
2019-07-22 18:45
test_soup.py
19.87
KB
-rw-r--r--
2016-07-27 01:27
test_soup.pyc
24.06
KB
-rw-r--r--
2019-07-22 18:45
test_soup.pyo
24.02
KB
-rw-r--r--
2019-07-22 18:45
test_tree.py
78.28
KB
-rw-r--r--
2018-07-30 23:27
test_tree.pyc
97.34
KB
-rw-r--r--
2019-07-22 18:45
test_tree.pyo
97.27
KB
-rw-r--r--
2019-07-22 18:45
Save
Rename
"""Tests to ensure that the html.parser tree builder generates good trees.""" from pdb import set_trace import pickle from bs4.testing import SoupTest, HTMLTreeBuilderSmokeTest from bs4.builder import HTMLParserTreeBuilder from bs4.builder._htmlparser import BeautifulSoupHTMLParser 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 def test_builder_is_pickled(self): """Unlike most tree builders, HTMLParserTreeBuilder and will be restored after pickling. """ tree = self.soup("<a><b>foo</a>") dumped = pickle.dumps(tree, 2) loaded = pickle.loads(dumped) self.assertTrue(isinstance(loaded.builder, type(tree.builder))) def test_redundant_empty_element_closing_tags(self): self.assertSoupEquals('<br></br><br></br><br></br>', "<br/><br/><br/>") self.assertSoupEquals('</br></br></br>', "") def test_empty_element(self): # This verifies that any buffered data present when the parser # finishes working is handled. self.assertSoupEquals("foo &# bar", "foo &# bar") class TestHTMLParserSubclass(SoupTest): def test_error(self): """Verify that our HTMLParser subclass implements error() in a way that doesn't cause a crash. """ parser = BeautifulSoupHTMLParser() parser.error("don't crash")