class documentation
Undocumented
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
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. |
Property | default |
Undocumented |
@pytest.mark.parametrize( 'indent,expect', [ ( None, '<a>\n<b>\ntext\n</b>\n</a>'), ( -1, '<a>\n<b>\ntext\n</b>\n</a>'), ( 0, '<a>\n<b>\ntext\n</b>\n</a>'), ( '', '<a>\n<b>\ntext\n</b>\n</a>'), ( 1, '<a>\n <b>\n text\n </b>\n</a>'), ( 2, '<a>\n <b>\n text\n </b>\n</a>'), ( '\t', '<a>\n\t<b>\n\t\ttext\n\t</b>\n</a>'), ( 'abc', '<a>\nabc<b>\nabcabctext\nabc</b>\n</a>'), ( object(), '<a>\n <b>\n text\n </b>\n</a>'), ( b'bytes', '<a>\n <b>\n text\n </b>\n</a>')])
def test_indent(self, indent, expect): (source) ¶
def test_indent(self, indent, expect): (source) ¶
Undocumented