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 lxml tree builder generates good trees.""" import re import warnings try: import lxml.etree LXML_PRESENT = True LXML_VERSION = lxml.etree.LXML_VERSION except ImportError, e: LXML_PRESENT = False LXML_VERSION = (0,) if LXML_PRESENT: from bs4.builder import LXMLTreeBuilder, LXMLTreeBuilderForXML from bs4 import ( BeautifulSoup, BeautifulStoneSoup, ) from bs4.element import Comment, Doctype, SoupStrainer from bs4.testing import skipIf from bs4.tests import test_htmlparser from bs4.testing import ( HTMLTreeBuilderSmokeTest, XMLTreeBuilderSmokeTest, SoupTest, skipIf, ) @skipIf( not LXML_PRESENT, "lxml seems not to be present, not testing its tree builder.") class LXMLTreeBuilderSmokeTest(SoupTest, HTMLTreeBuilderSmokeTest): """See ``HTMLTreeBuilderSmokeTest``.""" @property def default_builder(self): return LXMLTreeBuilder() def test_out_of_range_entity(self): self.assertSoupEquals( "<p>foo�bar</p>", "<p>foobar</p>") self.assertSoupEquals( "<p>foo�bar</p>", "<p>foobar</p>") self.assertSoupEquals( "<p>foo�bar</p>", "<p>foobar</p>") def test_entities_in_foreign_document_encoding(self): # We can't implement this case correctly because by the time we # hear about markup like "“", it's been (incorrectly) converted into # a string like u'\x93' pass # In lxml < 2.3.5, an empty doctype causes a segfault. Skip this # test if an old version of lxml is installed. @skipIf( not LXML_PRESENT or LXML_VERSION < (2,3,5,0), "Skipping doctype test for old version of lxml to avoid segfault.") def test_empty_doctype(self): soup = self.soup("<!DOCTYPE>") doctype = soup.contents[0] self.assertEqual("", doctype.strip()) def test_beautifulstonesoup_is_xml_parser(self): # Make sure that the deprecated BSS class uses an xml builder # if one is installed. with warnings.catch_warnings(record=True) as w: soup = BeautifulStoneSoup("<b />") self.assertEqual(u"<b/>", unicode(soup.b)) self.assertTrue("BeautifulStoneSoup class is deprecated" in str(w[0].message)) @skipIf( not LXML_PRESENT, "lxml seems not to be present, not testing its XML tree builder.") class LXMLXMLTreeBuilderSmokeTest(SoupTest, XMLTreeBuilderSmokeTest): """See ``HTMLTreeBuilderSmokeTest``.""" @property def default_builder(self): return LXMLTreeBuilderForXML()