class documentation

class TestWarnings(SoupTest): (source)

View In Hierarchy

Undocumented

Method test_fromEncoding_renamed_to_from_encoding Undocumented
Method test_no_warning_if_explicit_parser_specified Undocumented
Method test_parseOnlyThese_renamed_to_parse_only Undocumented
Method test_resembles_filename_no_warning Undocumented
Method test_resembles_filename_warning Undocumented
Method test_unrecognized_keyword_argument Undocumented
Method test_url_warning_with_bytes_and_space Undocumented
Method test_url_warning_with_bytes_url Undocumented
Method test_url_warning_with_unicode_and_space Undocumented
Method test_url_warning_with_unicode_url Undocumented
Method test_warning_if_no_parser_specified Undocumented
Method test_warning_if_parser_specified_too_vague Undocumented
Method _assert_no_parser_specified Undocumented
Method _assert_warning 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_fromEncoding_renamed_to_from_encoding(self): (source)

Undocumented

def test_no_warning_if_explicit_parser_specified(self): (source)

Undocumented

def test_parseOnlyThese_renamed_to_parse_only(self): (source)

Undocumented

@pytest.mark.parametrize('extension', ['markuphtml', 'markup.com', '', 'markup.js'])
def test_resembles_filename_no_warning(self, extension): (source)

Undocumented

@pytest.mark.parametrize('extension', ['markup.html', 'markup.htm', 'markup.HTML', 'markup.txt', 'markup.xhtml', 'markup.xml', '/home/user/file', 'c:\\user\file'])
def test_resembles_filename_warning(self, extension): (source)

Undocumented

def test_unrecognized_keyword_argument(self): (source)

Undocumented

def test_url_warning_with_bytes_and_space(self): (source)

Undocumented

def test_url_warning_with_bytes_url(self): (source)

Undocumented

def test_url_warning_with_unicode_and_space(self): (source)

Undocumented

def test_url_warning_with_unicode_url(self): (source)

Undocumented

def test_warning_if_no_parser_specified(self): (source)

Undocumented

def test_warning_if_parser_specified_too_vague(self): (source)

Undocumented

def _assert_no_parser_specified(self, w): (source)

Undocumented

def _assert_warning(self, warnings, cls): (source)

Undocumented