class SoupTest(object): (source)
Known subclasses: bs4.tests.test_formatter.TestFormatter
, bs4.tests.test_html5lib.TestHTML5LibBuilder
, bs4.tests.test_htmlparser.TestHTMLParserTreeBuilder
, bs4.tests.test_lxml.TestLXMLTreeBuilder
, bs4.tests.test_lxml.TestLXMLXMLTreeBuilder
, bs4.tests.test_navigablestring.TestNavigableString
, bs4.tests.test_navigablestring.TestNavigableStringSubclasses
, bs4.tests.test_pageelement.TestCSSSelectors
, bs4.tests.test_pageelement.TestEncoding
, bs4.tests.test_pageelement.TestFormatters
, bs4.tests.test_pageelement.TestPersistence
, bs4.tests.test_soup.TestConstructor
, bs4.tests.test_soup.TestEncodingConversion
, bs4.tests.test_soup.TestNewString
, bs4.tests.test_soup.TestNewTag
, bs4.tests.test_soup.TestPickle
, bs4.tests.test_soup.TestSelectiveParsing
, bs4.tests.test_soup.TestWarnings
, bs4.tests.test_tag.TestMultiValuedAttributes
, bs4.tests.test_tag.TestTag
, bs4.tests.test_tree.ProximityTest
, bs4.tests.test_tree.SiblingTest
, bs4.tests.test_tree.TestDeprecatedArguments
, bs4.tests.test_tree.TestFind
, bs4.tests.test_tree.TestFindAll
, bs4.tests.test_tree.TestFindAllBasicNamespaces
, bs4.tests.test_tree.TestFindAllByAttribute
, bs4.tests.test_tree.TestFindAllByName
, bs4.tests.test_tree.TestIndex
, bs4.tests.test_tree.TestParentOperations
, bs4.tests.test_tree.TestSmooth
, bs4.tests.test_tree.TestTreeModification
Undocumented
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. |
Property | default |
Undocumented |
bs4.tests.test_pageelement.TestCSSSelectors
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.
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.
Ensure that next_element and previous_element are properly set for all descendants of the given element.
bs4.tests.test_html5lib.TestHTML5LibBuilder
, bs4.tests.test_lxml.TestLXMLTreeBuilder
, bs4.tests.test_lxml.TestLXMLXMLTreeBuilder
Undocumented