class documentation

Undocumented

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 assert_selects(self, tags, should_match): (source)

Make sure that the given tags have the correct text. This is used in tests that define a bunch of tags, each containing a single string, and then select certain strings by some mechanism.

def assert_selects_ids(self, tags, should_match): (source)

Make sure that the given tags have the correct IDs. This is used in tests that define a bunch of tags, each containing a single string, and then select certain strings by some mechanism.

def assert_soup(self, to_parse, compare_parsed_to=None): (source)

Parse some markup using Beautiful Soup and verify that the output markup is as expected.

def assertConnectedness(self, element): (source)

Ensure that next_element and previous_element are properly set for all descendants of the given element.

def document_for(self, markup, **kwargs): (source)

Turn an HTML fragment into a document. The details depend on the builder.

def linkage_validator(self, el, _recursive_call=False): (source)

Ensure proper linkage throughout the document.

def soup(self, markup, **kwargs): (source)

Build a Beautiful Soup object from markup.