class documentation

class TestNewTag(SoupTest): (source)

View In Hierarchy

Test the BeautifulSoup.new_tag() method.

Method test_new_tag Undocumented
Method test_tag_inherits_self_closing_rules_from_builder Undocumented
Method test_xml_tag_inherits_self_closing_rules_from_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.
Property default_builder Undocumented
def test_new_tag(self): (source)

Undocumented

def test_tag_inherits_self_closing_rules_from_builder(self): (source)

Undocumented

@pytest.mark.skipif(not LXML_PRESENT, reason='lxml not installed, cannot parse XML document')
def test_xml_tag_inherits_self_closing_rules_from_builder(self): (source)

Undocumented