class documentation
class TestLXMLTreeBuilder(SoupTest, HTMLTreeBuilderSmokeTest): (source)
See ``HTMLTreeBuilderSmokeTest``.
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Property | default |
Undocumented |
Inherited from SoupTest
:
Method | assert |
Make sure that the given tags have the correct text. |
Method | assert |
Make sure that the given tags have the correct IDs. |
Method | assert |
Parse some markup using Beautiful Soup and verify that the output markup is as expected. |
Method | assert |
Ensure that next_element and previous_element are properly set for all descendants of the given element. |
Method | document |
Turn an HTML fragment into a document. |
Method | linkage |
Ensure proper linkage throughout the document. |
Method | soup |
Build a Beautiful Soup object from markup. |
Inherited from HTMLTreeBuilderSmokeTest
(via SoupTest
):
Method | assert |
Assert that a given doctype string is handled correctly. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Parsers don't need to *understand* namespaces, but at the very least they should not choke on namespaces or lose data. |
Method | test |
A <br> tag is designated as an empty-element tag. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
One table can go inside another one. |
Method | test |
Make sure you can copy the tree builder. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Verify consistent handling of empty-element tags, no matter how they come in through the markup. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Prevent recurrence of a bug in the html5lib treebuilder. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Mostly to prevent a recurrence of a bug in the html5lib treebuilder. |
Method | test |
Prevent recurrence of a bug in the html5lib treebuilder. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Block elements can be nested. |
Method | test |
Undocumented |
Method | test |
Inline elements can be nested indefinitely. |
Method | test |
Undocumented |
Method | test |
Make sure normal, everyday HTML doctypes are handled correctly. |
Method | test |
A <p> tag is never designated as an empty-element tag. |
Method | test |
Undocumented |
Method | test |
Whitespace must be preserved in <pre> and <textarea> tags, even if that would mean not prettifying the markup. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
A real XHTML document should come out more or less the same as it went in. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Parsers should be able to work with SoupStrainers. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
A tag that's not closed by the end of the document should be closed. |
Method | test |
Test the worst case (currently) for linking issues. |
Method | _document |
Generate and parse a document with the given doctype. |
Inherited from TreeBuilderSmokeTest
(via SoupTest
, HTMLTreeBuilderSmokeTest
):
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
@pytest.mark.skipif( not LXML_PRESENT or (LXML_VERSION < (2, 3, 5, 0)), reason='Skipping doctype test for old version of lxml to avoid segfault.')
def test_empty_doctype(self): (source) ¶
def test_empty_doctype(self): (source) ¶
Undocumented