ó
    |ch  ã                   ó€   • S r SSKrSSKJrJrJrJrJrJr   " S S5      r	 " S S5      r
 " S S	5      r " S
 S5      rg)z‚Tests of classes in element.py.

The really big classes -- Tag, PageElement, and NavigableString --
are tested in separate files.
é    N)ÚHTMLAttributeDictÚXMLAttributeDictÚCharsetMetaAttributeValueÚContentMetaAttributeValueÚNamespacedAttributeÚ	ResultSetc                   ó,   • \ rS rSrS rS rS rS rSrg)ÚTestNamedspacedAttributeé   c                 óz   • [        SS 5      nUS:X  d   e[        SS5      nUS:X  d   e[        S5      nUS:X  d   eg )NÚxmlnsÚ ©r   ©ÚselfÚas     Ú_/var/www/djangovue.mamus.xyz/django/venv/lib/python3.13/site-packages/bs4/tests/test_element.pyÚ test_name_may_be_none_or_missingÚ9TestNamedspacedAttribute.test_name_may_be_none_or_missing   sH   € Ü ¨Ó.ˆØ�G‹|Ðˆ|ä ¨Ó,ˆØ�G‹|Ðˆ|ä Ó(ˆØ�G‹|Ð‰|ó    c                 óT   • [        S S5      nUS:X  d   e[        SS5      nUS:X  d   eg )NÚtagr   r   r   s     r   Ú%test_namespace_may_be_none_or_missingÚ>TestNamedspacedAttribute.test_namespace_may_be_none_or_missing   s2   € Ü  eÓ,ˆØ�E‹zÐˆzä  EÓ*ˆØ�E‹zÐ‰zr   c                 ó,   • [        SS5      nSU:X  d   eg )Nr   Úbza:br   r   s     r   Ú6test_attribute_is_equivalent_to_colon_separated_stringÚOTestNamedspacedAttribute.test_attribute_is_equivalent_to_colon_separated_string#   s   € Ü  SÓ)ˆØ˜‹zÐ‰zr   c                 ó¾   • [        SSS5      n[        SSS5      nX:X  d   e[        SSS 5      nX:X  d   e[        SSS5      nX:w  d   e[        SSS5      nX:w  d   eg )Nr   r   ÚcÚzr   )r   r   r   r    ÚdÚes         r   Ú;test_attributes_are_equivalent_if_prefix_and_name_identicalÚTTestNamedspacedAttribute.test_attributes_are_equivalent_if_prefix_and_name_identical'   sp   € Ü  S¨#Ó.ˆÜ  S¨#Ó.ˆØ‹vˆˆvô    S¨$Ó/ˆØ‹vˆˆvô    S¨#Ó.ˆØ‹vˆˆvä  S¨#Ó.ˆØ‹vˆ‰vr   © N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   r   r$   Ú__static_attributes__r&   r   r   r
   r
      s   † òòòõr   r
   c                   ó$   • \ rS rSrSrS rS rSrg)Ú)TestAttributeValueWithCharsetSubstitutioné8   zhCertain attributes are designed to have the charset of the
final document substituted into their value.
c                 óØ   • [        S5      nSU:X  d   eSUR                  :X  d   eSUR                  S5      :X  d   eSUR                  S5      :X  d   eSUR                  S5      :X  d   eg )Nzeuc-jpÚutf8Úasciir   Úpalmos)r   Úoriginal_valueÚsubstitute_encoding©r   Úvalues     r   Ú!test_charset_meta_attribute_valueÚKTestAttributeValueWithCharsetSubstitution.test_charset_meta_attribute_value=   s}   € ô *¨(Ó3ˆØ˜5Ó Ð Ð Ø˜5×/Ñ/Ó/Ð/Ð/Ø˜×2Ñ2°6Ó:Ó:Ð:Ð:Ø˜%×3Ñ3°GÓ<Ó<Ð<Ð<ð �U×.Ñ.¨xÓ8Ó8Ð8Ñ8r   c                 óØ   • [        S5      nSU:X  d   eSUR                  :X  d   eSUR                  S5      :X  d   eSUR                  S5      :X  d   eSUR                  S5      :X  d   eg )Nztext/html; charset=euc-jpztext/html; charset=utf8r0   ztext/html; charset=asciir1   z	text/htmlr2   )r   r3   r4   r5   s     r   Ú!test_content_meta_attribute_valueÚKTestAttributeValueWithCharsetSubstitution.test_content_meta_attribute_valueJ   s|   € Ü)Ð*EÓFˆØ*¨eÓ3Ð3Ð3Ø*¨e×.BÑ.BÓBÐBÐBØ(¨E×,EÑ,EÀfÓ,MÓMÐMÐMØ)¨U×-FÑ-FÀwÓ-OÓOÐOÐOð ˜e×7Ñ7¸ÓAÓAÐAÑAr   r&   N)r'   r(   r)   r*   Ú__doc__r7   r:   r+   r&   r   r   r-   r-   8   s   † ñò9õ	Br   r-   c                   ó    • \ rS rSrS rS rSrg)ÚTestAttributeDictséV   c                 ó´   • [        5       nSUS'   US   S:X  d   eSUS'   US   S:X  d   eSUS'   US   SL d   eSUS'   US   SL d   eS US'   US   S:X  d   eg )	Néd   ÚvÚ100çZd;ßY@ú100.123FTr   )r   )r   r"   s     r   Ú!test_xml_attribute_value_handlingÚ4TestAttributeDicts.test_xml_attribute_value_handlingW   s�   € ô ÓˆØˆˆ#‰Ø�‰v˜‹ÐˆØˆˆ#‰Ø�‰v˜Ó"Ð"Ð"ð ˆˆ#‰Ø�‰v˜ŠÐˆàˆˆ#‰Ø�‰v˜Š~Ðˆ~àˆˆ#‰Ø�‰v˜‹|Ð‰|r   c                 óâ   • [        5       nSUS'   US   S:X  d   eSUS'   US   S:X  d   eSUS'   SU;  d   eS US'   SU;  d   eSUS'   US   S:X  d   e[        SS	S
5      nSX'   X   S	:X  d   eg )NrA   rB   rC   rD   rE   FTÚprefixÚnameÚ	namespace)r   r   )r   r"   Ú	attributes      r   Ú"test_html_attribute_value_handlingÚ5TestAttributeDicts.test_html_attribute_value_handlingk   s¨   € ô ÓˆØˆˆ#‰Ø�‰v˜‹ÐˆØˆˆ#‰Ø�‰v˜Ó"Ð"Ð"àˆˆ#‰Ø˜!‹|Ðˆ|àˆˆ#‰Ø˜!‹|Ðˆ|àˆˆ#‰Ø�‰v˜‹}Ðˆ}ä'¨°&¸+ÓFˆ	Øˆ‰Ø‰|˜vÓ%Ð%Ñ%r   r&   N)r'   r(   r)   r*   rF   rM   r+   r&   r   r   r>   r>   V   s   † òõ(&r   r>   c                   ó   • \ rS rSrS rSrg)ÚTestResultSeté‚   c                 óÐ   • [        S 5      n[        R                  " [        5       nUR                    S S S 5        S[        WR                  5      :X  d   eg ! , (       d  f       N*= f)Nz£ResultSet object has no attribute "name". You're probably treating a list of elements like a single element. Did you call find_all() when you meant to call find()?)r   ÚpytestÚraisesÚAttributeErrorrJ   Ústrr6   )r   Úrsr#   s      r   Útest_getattr_exceptionÚ$TestResultSet.test_getattr_exceptionƒ   sN   € Ü�t‹_ˆÜ�]Š]œ>Ô*¨aØ�GŠG÷ +ð vÜ�1—7‘7‹|óð	
ñ÷ +Õ*ús   ¦AÁ
A%r&   N)r'   r(   r)   r*   rX   r+   r&   r   r   rP   rP   ‚   s   † õ
r   rP   )r<   rS   Úbs4.elementr   r   r   r   r   r   r
   r-   r>   rP   r&   r   r   Ú<module>r[      sE   ðñó ÷÷ ÷$ñ $÷NBñ B÷<)&ñ )&÷X
ò 
r   