class documentation

See ``HTML5TreeBuilderSmokeTest``.

Method test_cloned_multivalue_node Undocumented
Method test_correctly_nested_tables html5lib inserts <tbody> tags where other parsers don't.
Method test_empty_comment Test that empty comment does not break structure.
Method test_extraction Test that extraction does not destroy the tree.
Method test_foster_parenting Undocumented
Method test_html5_attributes Undocumented
Method test_processing_instruction Processing instructions become comments.
Method test_reparented_markup Undocumented
Method test_reparented_markup_containing_children Undocumented
Method test_reparented_markup_containing_identical_whitespace_nodes Verify that we keep the two whitespace nodes in this document distinct when reparenting the adjacent <tbody> tags.
Method test_reparented_markup_ends_with_whitespace Undocumented
Method test_soupstrainer Parsers should be able to work with SoupStrainers.
Method test_special_string_containers Undocumented
Method test_tracking_line_numbers Undocumented
Method test_xml_declaration_followed_by_doctype Undocumented
Property default_builder Undocumented

Inherited from SoupTest:

Method assert_selects Make sure that the given tags have the correct text.
Method assert_selects_ids Make sure that the given tags have the correct IDs.
Method assert_soup Parse some markup using Beautiful Soup and verify that the output markup is as expected.
Method assertConnectedness Ensure that next_element and previous_element are properly set for all descendants of the given element.
Method document_for Turn an HTML fragment into a document.
Method linkage_validator Ensure proper linkage throughout the document.
Method soup Build a Beautiful Soup object from markup.

Inherited from HTML5TreeBuilderSmokeTest (via SoupTest):

Method test_html_tags_have_namespace Undocumented
Method test_mathml_tags_have_namespace Undocumented
Method test_real_xhtml_document A real XHTML document should come out more or less the same as it went in.
Method test_svg_tags_have_namespace Undocumented
Method test_xml_declaration_becomes_comment Undocumented

Inherited from HTMLTreeBuilderSmokeTest (via SoupTest, HTML5TreeBuilderSmokeTest):

Method assertDoctypeHandled Assert that a given doctype string is handled correctly.
Method test_ampersand_in_attribute_value_gets_escaped Undocumented
Method test_angle_brackets_in_attribute_values_are_escaped Undocumented
Method test_apos_entity Undocumented
Method test_attribute_values_with_double_nested_quotes_get_quoted Undocumented
Method test_attribute_values_with_nested_quotes_are_left_alone Undocumented
Method test_basic_namespaces Parsers don't need to *understand* namespaces, but at the very least they should not choke on namespaces or lose data.
Method test_br_is_always_empty_element_tag A <br> tag is designated as an empty-element tag.
Method test_can_parse_unicode_document Undocumented
Method test_closing_tag_with_no_opening_tag Undocumented
Method test_comment Undocumented
Method test_deepcopy Make sure you can copy the tree builder.
Method test_deeply_nested_multivalued_attribute Undocumented
Method test_detect_xml_parsed_as_html Undocumented
Method test_double_head Undocumented
Method test_empty_doctype Undocumented
Method test_empty_element_tags Verify consistent handling of empty-element tags, no matter how they come in through the markup.
Method test_entities_converted_on_the_way_out Undocumented
Method test_entities_in_attributes_converted_to_unicode Undocumented
Method test_entities_in_foreign_document_encoding Undocumented
Method test_entities_in_strings_converted_during_parsing Undocumented
Method test_entities_in_text_converted_to_unicode Undocumented
Method test_escaped_ampersand_in_attribute_value_is_left_alone Undocumented
Method test_head_tag_between_head_and_body Prevent recurrence of a bug in the html5lib treebuilder.
Method test_html5_style_meta_tag_reflects_current_encoding Undocumented
Method test_meta_tag_reflects_current_encoding Undocumented
Method test_mixed_case_doctype Undocumented
Method test_multipart_strings Mostly to prevent a recurrence of a bug in the html5lib treebuilder.
Method test_multiple_copies_of_a_tag Prevent recurrence of a bug in the html5lib treebuilder.
Method test_multivalued_attribute_on_html Undocumented
Method test_multivalued_attribute_value_becomes_list Undocumented
Method test_multivalued_attribute_with_whitespace Undocumented
Method test_namespaced_html Undocumented
Method test_namespaced_public_doctype Undocumented
Method test_namespaced_system_doctype Undocumented
Method test_nested_block_level_elements Block elements can be nested.
Method test_nested_formatting_elements Undocumented
Method test_nested_inline_elements Inline elements can be nested indefinitely.
Method test_non_breaking_spaces_converted_on_the_way_in Undocumented
Method test_normal_doctypes Make sure normal, everyday HTML doctypes are handled correctly.
Method test_out_of_range_entity Undocumented
Method test_p_tag_is_never_empty_element A <p> tag is never designated as an empty-element tag.
Method test_pickle_and_unpickle_identity Undocumented
Method test_preserved_whitespace_in_pre_and_textarea Whitespace must be preserved in <pre> and <textarea> tags, even if that would mean not prettifying the markup.
Method test_public_doctype_with_url Undocumented
Method test_python_specific_encodings_not_used_in_charset Undocumented
Method test_quot_entity_converted_to_quotation_mark Undocumented
Method test_real_hebrew_document Undocumented
Method test_real_iso_8859_document Undocumented
Method test_real_shift_jis_document Undocumented
Method test_single_quote_attribute_values_become_double_quotes Undocumented
Method test_smart_quotes_converted_on_the_way_in Undocumented
Method test_strings_resembling_character_entity_references Undocumented
Method test_system_doctype Undocumented
Method test_tag_with_no_attributes_can_have_attributes_added Undocumented
Method test_unclosed_tags_get_closed A tag that's not closed by the end of the document should be closed.
Method test_worst_case Test the worst case (currently) for linking issues.
Method _document_with_doctype Generate and parse a document with the given doctype.

Inherited from TreeBuilderSmokeTest (via SoupTest, HTML5TreeBuilderSmokeTest, HTMLTreeBuilderSmokeTest):

Method test_attribute_multi_valued Undocumented
Method test_attribute_not_multi_valued Undocumented
Method test_fuzzed_input Undocumented
def test_cloned_multivalue_node(self): (source)

Undocumented

def test_correctly_nested_tables(self): (source)

html5lib inserts <tbody> tags where other parsers don't.

def test_empty_comment(self): (source)

Test that empty comment does not break structure. https://bugs.launchpad.net/beautifulsoup/+bug/1806598

def test_extraction(self): (source)

Test that extraction does not destroy the tree. https://bugs.launchpad.net/beautifulsoup/+bug/1782928

def test_foster_parenting(self): (source)

Undocumented

def test_html5_attributes(self): (source)

Undocumented

def test_processing_instruction(self): (source)

Processing instructions become comments.

def test_reparented_markup(self): (source)

Undocumented

def test_reparented_markup_containing_children(self): (source)

Undocumented

def test_reparented_markup_containing_identical_whitespace_nodes(self): (source)

Verify that we keep the two whitespace nodes in this document distinct when reparenting the adjacent <tbody> tags.

def test_reparented_markup_ends_with_whitespace(self): (source)

Undocumented

def test_soupstrainer(self): (source)

Parsers should be able to work with SoupStrainers.

def test_special_string_containers(self): (source)
def test_tracking_line_numbers(self): (source)

Undocumented

def test_xml_declaration_followed_by_doctype(self): (source)

Undocumented

@property
default_builder = (source)

Undocumented