bs4.tests.test_element#

Tests of classes in element.py.

The really big classes – Tag, PageElement, and NavigableString – are tested in separate files.

Module Contents#

Classes#

TestNamedspacedAttribute

TestAttributeValueWithCharsetSubstitution

Certain attributes are designed to have the charset of the

class bs4.tests.test_element.TestNamedspacedAttribute#

Bases: object

test_name_may_be_none_or_missing()#
test_namespace_may_be_none_or_missing()#
test_attribute_is_equivalent_to_colon_separated_string()#
test_attributes_are_equivalent_if_prefix_and_name_identical()#
class bs4.tests.test_element.TestAttributeValueWithCharsetSubstitution#

Bases: object

Certain attributes are designed to have the charset of the final document substituted into their value.

test_content_meta_attribute_value()#
test_content_meta_attribute_value()#