HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/bs4/tests/__pycache__/test_element.cpython-310.pyc
o

�hI	�@sHdZddlmZmZmZddlmZGdd�de�ZGdd�de�Z	d	S)
z�Tests of classes in element.py.

The really big classes -- Tag, PageElement, and NavigableString --
are tested in separate files.
�)�CharsetMetaAttributeValue�ContentMetaAttributeValue�NamespacedAttribute�)�SoupTestc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�TestNamedspacedAttributecCsDtdd�}|dksJ�tdd�}|dksJ�td�}|dks J�dS)N�xmlns��r��self�a�r�I/usr/local/CyberCP/lib/python3.10/site-packages/bs4/tests/test_element.py� test_name_may_be_none_or_missings

z9TestNamedspacedAttribute.test_name_may_be_none_or_missingcCs0tdd�}|dksJ�tdd�}|dksJ�dS)N�tagr	r
rrrr�%test_namespace_may_be_none_or_missings

z>TestNamedspacedAttribute.test_namespace_may_be_none_or_missingcCstdd�}d|ksJ�dS)Nr
�bza:br
rrrr�6test_attribute_is_equivalent_to_colon_separated_string"s
zOTestNamedspacedAttribute.test_attribute_is_equivalent_to_colon_separated_stringcCsptddd�}tddd�}||ksJ�tddd�}||ksJ�tddd�}||ks*J�tddd�}||ks6J�dS)Nr
r�c�zr
)rr
rr�d�errr�;test_attributes_are_equivalent_if_prefix_and_name_identical&szTTestNamedspacedAttribute.test_attributes_are_equivalent_if_prefix_and_name_identicalN)�__name__�
__module__�__qualname__rrrrrrrrrs

rc@s eZdZdZdd�Zdd�ZdS)�)TestAttributeValueWithCharsetSubstitutionzpCertain attributes are designed to have the charset of the
    final document substituted into their value.
    cCsJtd�}d|ks
J�d|jksJ�d|�d�ksJ�d|�d�ks#J�dS)Nzeuc-jp�utf8�ascii)r�original_value�encode�r�valuerrr�!test_content_meta_attribute_value<s
zKTestAttributeValueWithCharsetSubstitution.test_content_meta_attribute_valuecCsJtd�}d|ks
J�d|jksJ�d|�d�ksJ�d|�d�ks#J�dS)Nztext/html; charset=euc-jpztext/html; charset=utf8rztext/html; charset=asciir)rr r!r"rrrr$Es
N)rrr�__doc__r$rrrrr7s	rN)
r%�bs4.elementrrrr	r�objectrrrrrr�<module>s
(