HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/bs4/tests/__pycache__/test_element.cpython-311.pyc
�

��ncI	��b�dZddlmZmZmZddlmZGd�de��ZGd�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�&�eZdZd�Zd�Zd�Zd�ZdS)�TestNamedspacedAttributec��tdd��}|dksJ�tdd��}|dksJ�td��}|dksJ�dS)N�xmlns��r��self�as  �8D:\Python311\Lib\site-packages\bs4/tests/test_element.py� test_name_may_be_none_or_missingz9TestNamedspacedAttribute.test_name_may_be_none_or_missingsc�����.�.���G�|�������,�,���G�|������(�(���G�|������c�f�tdd��}|dksJ�tdd��}|dksJ�dS)N�tagrr
rs  r�%test_namespace_may_be_none_or_missingz>TestNamedspacedAttribute.test_namespace_may_be_none_or_missingsF����e�,�,���E�z������E�*�*���E�z�����rc�6�tdd��}d|ksJ�dS)Nr�bza:br
rs  r�6test_attribute_is_equivalent_to_colon_separated_stringzOTestNamedspacedAttribute.test_attribute_is_equivalent_to_colon_separated_string"s'����S�)�)����z�����rc���tddd��}tddd��}||ksJ�tddd��}||ksJ�tddd��}||ksJ�tddd��}||ksJ�dS)Nrr�c�zr
)rrrr�d�es      r�;test_attributes_are_equivalent_if_prefix_and_name_identicalzTTestNamedspacedAttribute.test_attributes_are_equivalent_if_prefix_and_name_identical&s�����S�#�.�.����S�#�.�.���A�v�
�
�
�
 ��S�$�/�/���A�v�
�
�
�
 ��S�#�.�.���A�v�
�
�
���S�#�.�.���A�v�
�
�
�
�
rN)�__name__�
__module__�__qualname__rrrr�rrr	r	sP�������������������rr	c��eZdZdZd�Zd�ZdS)�)TestAttributeValueWithCharsetSubstitutionzpCertain attributes are designed to have the charset of the
    final document substituted into their value.
    c��td��}d|ksJ�d|jksJ�d|�d��ksJ�d|�d��ksJ�dS)Nzeuc-jp�utf8�ascii)r�original_value�encode�r�values  r�!test_content_meta_attribute_valuezKTestAttributeValueWithCharsetSubstitution.test_content_meta_attribute_value<sv��*�(�3�3���5� � � � ��5�/�/�/�/�/�����f�-�-�-�-�-�-��%�,�,�w�/�/�/�/�/�/�/�/rc��td��}d|ksJ�d|jksJ�d|�d��ksJ�d|�d��ksJ�dS)Nztext/html; charset=euc-jpztext/html; charset=utf8r'ztext/html; charset=asciir()rr)r*r+s  rr-zKTestAttributeValueWithCharsetSubstitution.test_content_meta_attribute_valueEsu��)�*E�F�F��*�e�3�3�3�3�*�e�.B�B�B�B�B�(�E�L�L��,@�,@�@�@�@�@�)�U�\�\�'�-B�-B�B�B�B�B�B�BrN)r r!r"�__doc__r-r#rrr%r%7sA��������0�0�0�C�C�C�C�Crr%N)
r/�bs4.elementrrrrr�objectr	r%r#rr�<module>r2s���������������
������%�%�%�%�%�v�%�%�%�PC�C�C�C�C��C�C�C�C�Cr