class documentation
Test various methods of Tag which aren't so complicated they need their own classes.
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Tag.text and Tag.get_text(sep=u"") -> all child text, concatenated |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
has_attr() checks for the presence of an attribute. |
Method | test |
Only a Tag containing a single text node has a .string. |
Method | test |
The length of a Tag is its number of children. |
Method | test |
Accessing a Python member .foo invokes find('foo') |
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 |
has_attr() checks for the presence of an attribute. Please note note: has_attr() is different from __in__. has_attr() checks the tag's attributes and __in__ checks the tag's chidlren.