bs4.tests.test_lxml#

Tests to ensure that the lxml tree builder generates good trees.

Module Contents#

Classes#

TestLXMLTreeBuilder

See HTMLTreeBuilderSmokeTest.

TestLXMLXMLTreeBuilder

See HTMLTreeBuilderSmokeTest.

class bs4.tests.test_lxml.TestLXMLTreeBuilder#

Bases: bs4.tests.SoupTest, bs4.tests.HTMLTreeBuilderSmokeTest

See HTMLTreeBuilderSmokeTest.

property default_builder#
test_out_of_range_entity()#
test_entities_in_foreign_document_encoding()#
test_empty_doctype()#
test_beautifulstonesoup_is_xml_parser()#
test_tracking_line_numbers()#
class bs4.tests.test_lxml.TestLXMLXMLTreeBuilder#

Bases: bs4.tests.SoupTest, bs4.tests.XMLTreeBuilderSmokeTest

See HTMLTreeBuilderSmokeTest.

property default_builder#
test_namespace_indexing()#
test_namespace_interaction_with_select_and_find()#
test_pickle_restores_builder()#