Ë
    ò¦1h°E  ã                   ó†   — d dl Z d dlZd dlZd dlZd dlmZ d dlmZmZmZ  G d„ de	«      Z
 G d„ de	«      Z G d„ d	e	«      Zy)
é    N)ÚBeautifulSoup)ÚEntitySubstitutionÚEncodingDetectorÚUnicodeDammitc                   ó‚   — e Zd ZdZd„ Zej                  j                  dg d¢«      d„ «       Zd„ Z	d„ Z
d„ Zd	„ Zd
„ Zd„ Zy)ÚTestUnicodeDammitz"Standalone tests of UnicodeDammit.c                 ó@   — d}t        |«      }|j                  |k(  sJ ‚y )Nu   I'm already Unicode! â˜ƒ)r   Úunicode_markup)ÚselfÚmarkupÚdammits      úS/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/bs4/tests/test_dammit.pyÚtest_unicode_inputz$TestUnicodeDammit.test_unicode_input   s%   € Ø3ˆÜ˜vÓ&ˆØ×$Ñ$¨Ò.Ð.Ñ.ó    z smart_quotes_to,expect_converted))Nu   â€˜â€™â€œâ€�)Úxmlz &#x2018;&#x2019;&#x201C;&#x201D;)Úhtmlz&lsquo;&rsquo;&ldquo;&rdquo;)Úasciiz''""c                 óf   — d}t        |dg|¬«      j                  }|dj                  |«      k(  sJ ‚y)zbVerify the functionality of the smart_quotes_to argument
        to the UnicodeDammit constructor.s   <foo>‘’“”</foo>úwindows-1252)Úknown_definite_encodingsÚsmart_quotes_toz<foo>{}</foo>N)r   r
   Úformat)r   r   Úexpect_convertedr   Ú	converteds        r   Útest_smart_quotes_toz&TestUnicodeDammit.test_smart_quotes_to   sE   € ð 0ˆÜ!ØØ&4Ð%5Ø+ô
÷ ‰.ð	 	ð
 ˜O×2Ñ2Ð3CÓDÒDÐDÑDr   c                 ó~   — d}t        |«      }|j                  j                  «       dk(  sJ ‚|j                  dk(  sJ ‚y )Ns   SacrÃ© bleu! â˜ƒúutf-8u   SacrÃ© bleu! â˜ƒ©r   Úoriginal_encodingÚlowerr
   )r   Úutf8r   s      r   Útest_detect_utf8z"TestUnicodeDammit.test_detect_utf8*   sC   € Ø1ˆÜ˜tÓ$ˆØ×'Ñ'×-Ñ-Ó/°7Ò:Ð:Ð:Ø×$Ñ$Ð(DÒDÐDÑDr   c                 ó‚   — d}t        |dg«      }|j                  j                  «       dk(  sJ ‚|j                  dk(  sJ ‚y )Nó   íåìùú
iso-8859-8u   ×�×•×œ×©r   )r   Úhebrewr   s      r   Útest_convert_hebrewz%TestUnicodeDammit.test_convert_hebrew0   sG   € Ø$ˆÜ˜v¨ ~Ó6ˆØ×'Ñ'×-Ñ-Ó/°<Ò?Ð?Ð?Ø×$Ñ$Ð(BÒBÐBÑBr   c                 óœ   — d}t        |«      }|j                  j                  «       dk(  sJ ‚|j                  j	                  d«      |k(  sJ ‚y )Ns   ã‚±ãƒ¼ã‚¿ã‚¤ Watchr   )r   r   r    r
   Úencode)r   Úutf_8r   s      r   Ú/test_dont_see_smart_quotes_where_there_are_nonezATestUnicodeDammit.test_dont_see_smart_quotes_where_there_are_none6   sM   € ØIˆÜ˜uÓ%ˆØ×'Ñ'×-Ñ-Ó/°7Ò:Ð:Ð:Ø×$Ñ$×+Ñ+¨GÓ4¸Ò=Ð=Ñ=r   c                 ó~   — dj                  d«      }t        |dg«      }|j                  j                  «       dk(  sJ ‚y )Nõ   RÃ¤ksmÃ¶rgÃ¥sr   r%   ©r)   r   r   r    ©r   Ú	utf8_datar   s      r   Ú test_ignore_inappropriate_codecsz2TestUnicodeDammit.test_ignore_inappropriate_codecs<   s=   € Ø#×*Ñ*¨7Ó3ˆ	Ü˜y¨<¨.Ó9ˆØ×'Ñ'×-Ñ-Ó/°7Ò:Ð:Ñ:r   c                 óŒ   — dj                  d«      }dD ].  }t        ||g«      }|j                  j                  «       dk(  rŒ.J ‚ y )Nr-   r   )z.utf8z...z
utF---16.!r.   )r   r0   Úbad_encodingr   s       r   Útest_ignore_invalid_codecsz,TestUnicodeDammit.test_ignore_invalid_codecsA   sL   € Ø#×*Ñ*¨7Ó3ˆ	Ø:ò 	?ˆLÜ" 9¨|¨nÓ=ˆFØ×+Ñ+×1Ñ1Ó3°wÓ>Ð>Ð>ñ	?r   c                 óº   — dj                  d«      }t        |dg¬«      }|j                  j                  «       dk(  sJ ‚t        |ddg¬«      }|j                  �J ‚y )Nr-   r   )Úexclude_encodingsr   r.   r/   s      r   Útest_exclude_encodingsz(TestUnicodeDammit.test_exclude_encodingsG   sd   € à#×*Ñ*¨7Ó3ˆ	ô ˜y¸W¸IÔFˆØ×'Ñ'×-Ñ-Ó/°>ÒAÐAÐAô ˜y¸WÀnÐ<UÔVˆØ×'Ñ'Ð/Ð/Ñ/r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚpytestÚmarkÚparametrizer   r"   r'   r+   r1   r4   r7   © r   r   r   r      sW   „ Ù,ò/ð
 ‡[�[×ÑØ*ò	
óñ	Eóð	EòEòCò>ò;ò
?ó0r   r   c                   óB   — e Zd Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	„ Zy
)ÚTestEncodingDetectorc                 óP   — t        d«      }t        |j                  «      }d|v sJ ‚y )Ns'   <?xml version="1.0" encoding="UTF-Û" ?>u   utf-ï¿½)r   ÚlistÚ	encodings)r   ÚdetectedrD   s      r   ÚPtest_encoding_detector_replaces_junk_in_encoding_name_with_replacement_characterzeTestEncodingDetector.test_encoding_detector_replaces_junk_in_encoding_name_with_replacement_characterV   s-   € ô $Ð$QÓRˆÜ˜×+Ñ+Ó,ˆ	Ø.°)Ñ;Ð;Ñ;r   c                 óN   — dD ]   }t        |d¬«      }d|j                  k(  rŒ J ‚ y )N)s&   <html><meta charset="euc-jp" /></html>s&   <html><meta charset='euc-jp' /></html>s$   <html><meta charset=euc-jp /></html>s#   <html><meta charset=euc-jp/></html>T©Úis_htmlzeuc-jp)r   r   ©r   Údatar   s      r   Ú test_detect_html5_style_meta_tagz5TestEncodingDetector.test_detect_html5_style_meta_tag]   s5   € ð
ò 	8ˆDô # 4°Ô6ˆFØ˜v×7Ñ7Ó7Ð7Ð7ñ	8r   c                 ó*  — d}t         j                  j                  }t        j                  t        j
                  «       	 d„ }|t         j                  _        t        |«      }d|j                  u sJ ‚d|j                  v sJ ‚t        |d«      }|j                  sJ ‚	 t        j                  t        j                  «       |t         j                  _        y # t        j                  t        j                  «       |t         j                  _        w xY w)NsT   ï»¿<?xml version="1.0" encoding="UTF-8"?>
<html><b>Ø¨ØªØ±</b>
<i>ÈÒÑ�ÊÑíä</i></html>c                  ó   — y ©Nr?   )Ústrs    r   ÚnoopzETestEncodingDetector.test_last_ditch_entity_replacement.<locals>.noop~   s   € Ør   Tu   ï¿½zhtml.parser)Úbs4r   Ú_chardet_dammitÚloggingÚdisableÚWARNINGr   Úcontains_replacement_charactersr
   r   ÚNOTSET)r   ÚdocÚchardetrQ   r   Úsoups         r   Ú"test_last_ditch_entity_replacementz7TestEncodingDetector.test_last_ditch_entity_replacementg   sË   € ð 2ˆô —*‘*×,Ñ,ˆÜ�‰œŸ™Ô(ð	1òð *.ŒC�J‰JÔ&Ü" 3Ó'ˆFØ˜6×AÑAÑAÐAÐAØ˜v×4Ñ4Ñ4Ð4Ð4ä   mÓ4ˆDØ×7Ò7Ð7Ñ7ä�O‰OœGŸN™NÔ+Ø)0ŒC�J‰JÕ&øô �O‰OœGŸN™NÔ+Ø)0ŒC�J‰JÕ&ús   ÁAC Ã:Dc                 ób   — d}t        |«      }d|j                  k(  sJ ‚d|j                  k(  sJ ‚y )Nó   ÿþ< a > á é < / a > u   <a>Ã¡Ã©</a>úutf-16le)r   r
   r   rJ   s      r   Útest_byte_order_mark_removedz1TestEncodingDetector.test_byte_order_mark_removedŒ   s9   € àMˆÜ˜tÓ$ˆØ × 5Ñ 5Ò5Ð5Ð5Ø˜V×5Ñ5Ò5Ð5Ñ5r   c                 ó‚  — d}t        |«      }t        |dg¬«      }d|j                  k(  sJ ‚t        |dg¬«      }d|j                  k(  sJ ‚dg|j                  D �cg c]  }|d   ‘Œ	 c}k(  sJ ‚d}t        |dgd	g¬
«      }d	|j                  k(  sJ ‚dd	g|j                  D �cg c]  }|d   ‘Œ	 c}k(  sJ ‚y c c}w c c}w )Nr^   zutf-16)r   r   )Úuser_encodingsr_   r   r$   r%   )r   rb   )r   r   Útried_encodings)r   rK   r   ÚbeforeÚafterÚxr&   s          r   Ú)test_known_definite_versus_user_encodingsz>TestEncodingDetector.test_known_definite_versus_user_encodings“   sç   € ð
 NˆÜ˜tÓ$ˆô ˜t¸x¸jÔIˆØ˜6×3Ñ3Ò3Ð3Ð3ô
 ˜d°G°9Ô=ˆØ˜U×4Ñ4Ò4Ð4Ð4Øˆ|¨f×.DÑ.DÖE¨  !£ÒEÒEÐEÐEð %ˆÜØ¨g¨YÈÀ~ô
ˆð ˜v×7Ñ7Ò7Ð7Ð7Ø˜Ð&¸×9OÑ9OÖ*P°A¨1¨Q«4Ò*PÒPÐPÑPùò  Fùò +Qs   ÁB7Â#B<c                 ód  — d}t        j                  d¬«      5 }t        |dgdgdg¬«      }d d d «       \  }|j                  }t	        |t
        «      sJ ‚|j                  t        k(  sJ ‚dj                  k(  sJ ‚g d¢|j                  D �cg c]  }|d	   ‘Œ	 c}k(  sJ ‚y # 1 sw Y   ŒvxY wc c}w )
Nr$   T)Úrecordú	shift-jisr   r%   )r   Úoverride_encodingsrb   )rj   r   r%   r   )
ÚwarningsÚcatch_warningsr   ÚmessageÚ
isinstanceÚDeprecationWarningÚfilenameÚ__file__r   rc   )r   r&   Úwr   Úwarningrn   rf   s          r   Ú"test_deprecated_override_encodingsz7TestEncodingDetector.test_deprecated_override_encodings³   sÅ   € ð %ˆÜ×$Ñ$¨DÔ1ð 	°QÜ"ØØ*5¨Ø$+ 9Ø ,˜~ô	ˆF÷	ð ‰	ˆØ—/‘/ˆÜ˜'Ô#5Ô6Ð6Ð6Ø×Ñ¤8Ò+Ð+Ð+Ø˜v×7Ñ7Ò7Ð7Ð7ò 4Ø!×1Ñ1Ö2�aˆQˆq‹TÒ2ò
ð 	
ñ 
÷	ð 	üò  3s   ™B!ÂB-Â!B*c                 ó,  — dj                  d«      }dj                  d«      }||z   |z   }t        j                  t        «      5  |j	                  d«       d d d «       t        j                  |«      }d|j	                  d«      k(  sJ ‚y # 1 sw Y   Œ5xY w)Nu	   â˜ƒâ˜ƒâ˜ƒr!   u   â€œHi, I like Windows!â€�Úwindows_1252u+   â˜ƒâ˜ƒâ˜ƒâ€œHi, I like Windows!â€�â˜ƒâ˜ƒâ˜ƒ)r)   r<   ÚraisesÚUnicodeDecodeErrorÚdecoder   Ú	detwingle)r   r!   rw   rY   Úfixeds        r   Útest_detwinglez#TestEncodingDetector.test_detwingleÊ   s�   € à!×)Ñ)¨&Ó1ˆð.ç
‰&�Ó
 ð 	ð �\Ñ! DÑ(ˆô �]‰]Ô-Ó.ñ 	Ø�J‰J�vÔ÷	ô ×'Ñ'¨Ó,ˆØ<ÀÇÁÈVÓ@TÒTÐTÑT÷	ð 	ús   ÁB
Â
Bc                 ó’   — dD ]B  }|j                  d«      }|j                  d«      sJ ‚t        j                  |«      }||k(  rŒBJ ‚ y )N)u   Å“u   â‚“u   Ã°Â�Â�Â“r!   ó   “)r)   Úendswithr   r{   )r   Útricky_unicode_charÚinputÚoutputs       r   Ú+test_detwingle_ignores_multibyte_charactersz@TestEncodingDetector.test_detwingle_ignores_multibyte_charactersâ   sT   € ð
$
ò 	#Ðð
 (×.Ñ.¨vÓ6ˆEØ—>‘> 'Ô*Ð*Ð*Ü"×,Ñ,¨UÓ3ˆFØ˜U“?Ð"�?ñ	#r   c                 ó¼  — d}|j                  d«      }d}|j                  d«      }t        j                  } ||d¬«      �J ‚d ||d¬«      k(  sJ ‚d ||d¬«      k(  sJ ‚d ||«      k(  sJ ‚d ||«      k(  sJ ‚d	d
z  } |||z   «      �J ‚ |||z   «      �J ‚ |||z   dd¬«      dk(  sJ ‚ ||d¬«      dk(  sJ ‚ |d	|z   d¬«      dk(  sJ ‚ |d|z   d¬«      �J ‚y )Nz0<html><head><meta charset="utf-8"></head></html>r   z,<?xml version="1.0" encoding="ISO-8859-1" ?>FrH   r   Tz
iso-8859-1ó    iˆ  )rI   Úsearch_entire_document)r‡   ó   a)r)   r   Úfind_declared_encoding)r   Úhtml_unicodeÚ
html_bytesÚxml_unicodeÚ	xml_bytesÚmÚspacers          r   Útest_find_declared_encodingz0TestEncodingDetector.test_find_declared_encodingñ   s<  € ð JˆØ!×(Ñ(¨Ó1ˆ
àDˆØ×&Ñ& wÓ/ˆ	ä×3Ñ3ˆÙ� uÔ-Ð5Ð5Ð5Ø™!˜L°$Ô7Ò7Ð7Ð7Ø™!˜J°Ô5Ò5Ð5Ð5à™q ›~Ò-Ð-Ð-Ø™q ›|Ò+Ð+Ð+ð ˜‘ˆÙ�˜*Ñ$Ó%Ð-Ð-Ð-Ù�˜)Ñ#Ó$Ð,Ð,Ð,ñ
 ˆf�zÑ!¨4ÈÔMÐQXÒXð	
ØXñ �°4Ô8¸LÒHÐHÐHÙ�˜	Ñ!¸$Ô?À<ÒOÐOÐOÙ�˜	Ñ!¸$Ô?ÐGÐGÑGr   N)r8   r9   r:   rF   rL   r\   r`   rg   ru   r}   r„   r�   r?   r   r   rA   rA   U   s4   „ ò<ò8ò#1òJ6òQò@
ò.Uò0#ó'Hr   rA   c                   ó|  — e Zd ZdZd„ Zej                  j                  dddg«      d„ «       Zd„ Z	d„ Z
d	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zej                  j                  dg d¢«      d„ «       Zej                  j                  dg d¢«      d„ «       Zej                  j                  ddg«      d„ «       Zy)ÚTestEntitySubstitutionz1Standalone tests of the EntitySubstitution class.c                 ó   — t         | _        y rO   )r   Úsub©r   s    r   Úsetup_methodz#TestEntitySubstitution.setup_method  s	   € Ü%ˆ�r   zoriginal,substituted)u   fooâˆ€â˜ƒÃµbaru   foo&forall;â˜ƒ&otilde;bar)u   â€˜â€™fooâ€œâ€�z&lsquo;&rsquo;foo&ldquo;&rdquo;c                 óD   — | j                   j                  |«      |k(  sJ ‚y rO   ©r”   Úsubstitute_html)r   ÚoriginalÚsubstituteds      r   Útest_substitute_htmlz+TestEntitySubstitution.test_substitute_html!  s!   € ð �x‰x×'Ñ'¨Ó1°[Ò@Ð@Ñ@r   c                 óp   — dD ]1  \  }}d}||z  }||z  }| j                   j                  |«      |k(  rŒ1J ‚ y )N)	)z&models;u   âŠ§)z&Nfr;u   ð�”‘)z&ngeqq;u   â‰§Ì¸)z&not;õ   Â¬)z&Not;u   â«¬z||)ÚfjrŸ   )z&gt;ú>)z&lt;ú<z3 %s 4r˜   )r   ÚentityÚuÚtemplateÚrawÚwith_entitiess         r   Útest_html5_entityz(TestEntitySubstitution.test_html5_entity/  sP   € ð
ò 	B‰IˆF�Að(  ˆHØ˜Q‘,ˆCØ$ vÑ-ˆMØ—8‘8×+Ñ+¨CÓ0°MÓAÐAÐAñ/	Br   c                 ó”   — d}d}| j                   j                  |«      |k(  sJ ‚d}d}| j                   j                  |«      |k(  sJ ‚y )Nu   fjords âŠ” penguinszfjords &sqcup; penguinsu   fjords âŠ”ï¸€ penguinszfjords &sqcups; penguinsr˜   )r   rK   r   s      r   Ú)test_html5_entity_with_variation_selectorz@TestEntitySubstitution.test_html5_entity_with_variation_selectorI  sR   € ð (ˆØ*ˆØ�x‰x×'Ñ'¨Ó-°Ò7Ð7Ð7à-ˆØ+ˆØ�x‰x×'Ñ'¨Ó-°Ò7Ð7Ñ7r   c                 óJ   — d}| j                   j                  |d«      |k(  sJ ‚y )NúWelcome to "my bar"F©r”   Úsubstitute_xml©r   Úss     r   ÚItest_xml_converstion_includes_no_quotes_if_make_quoted_attribute_is_falsez`TestEntitySubstitution.test_xml_converstion_includes_no_quotes_if_make_quoted_attribute_is_falseU  s&   € Ø!ˆØ�x‰x×&Ñ& q¨%Ó0°AÒ5Ð5Ñ5r   c                 óˆ   — | j                   j                  dd«      dk(  sJ ‚| j                   j                  dd«      dk(  sJ ‚y )NÚWelcomeTz	"Welcome"z	Bob's Barz"Bob's Bar"r¬   r•   s    r   Ú6test_xml_attribute_quoting_normally_uses_double_quoteszMTestEntitySubstitution.test_xml_attribute_quoting_normally_uses_double_quotesY  s@   € Ø�x‰x×&Ñ& y°$Ó7¸;ÒFÐFÐFØ�x‰x×&Ñ& {°DÓ9¸^ÒKÐKÑKr   c                 óJ   — d}| j                   j                  |d«      dk(  sJ ‚y )Nr«   Tz'Welcome to "my bar"'r¬   r®   s     r   ÚOtest_xml_attribute_quoting_uses_single_quotes_when_value_contains_double_quoteszfTestEntitySubstitution.test_xml_attribute_quoting_uses_single_quotes_when_value_contains_double_quotes]  s)   € ð "ˆØ�x‰x×&Ñ& q¨$Ó/Ð3LÒLÐLÑLr   c                 óJ   — d}| j                   j                  |d«      dk(  sJ ‚y )NúWelcome to "Bob's Bar"Tz""Welcome to &quot;Bob's Bar&quot;"r¬   r®   s     r   Úbtest_xml_attribute_quoting_escapes_single_quotes_when_value_contains_both_single_and_double_quoteszyTestEntitySubstitution.test_xml_attribute_quoting_escapes_single_quotes_when_value_contains_both_single_and_double_quotesc  s)   € ð &ˆØ�x‰x×&Ñ& q¨$Ó/Ð3XÒXÐXÑXr   c                 óH   — d}| j                   j                  |«      |k(  sJ ‚y )Nr·   r¬   )r   Úquoteds     r   Ú<test_xml_quotes_arent_escaped_when_value_is_not_being_quotedzSTestEntitySubstitution.test_xml_quotes_arent_escaped_when_value_is_not_being_quotedi  s$   € Ø*ˆØ�x‰x×&Ñ& vÓ.°&Ò8Ð8Ñ8r   c                 óD   — | j                   j                  d«      dk(  sJ ‚y )Nzfoo<bar>zfoo&lt;bar&gt;r¬   r•   s    r   Ú'test_xml_quoting_handles_angle_bracketsz>TestEntitySubstitution.test_xml_quoting_handles_angle_bracketsm  s    € Ø�x‰x×&Ñ& zÓ2Ð6FÒFÐFÑFr   c                 óD   — | j                   j                  d«      dk(  sJ ‚y )NzAT&TzAT&amp;Tr¬   r•   s    r   Ú#test_xml_quoting_handles_ampersandsz:TestEntitySubstitution.test_xml_quoting_handles_ampersandsp  s   € Ø�x‰x×&Ñ& vÓ.°*Ò<Ð<Ñ<r   c                 óD   — | j                   j                  d«      dk(  sJ ‚y )Nú&Aacute;T&Tz&amp;Aacute;T&amp;Tr¬   r•   s    r   ÚEtest_xml_quoting_including_ampersands_when_they_are_part_of_an_entityz\TestEntitySubstitution.test_xml_quoting_including_ampersands_when_they_are_part_of_an_entitys  s    € Ø�x‰x×&Ñ& }Ó5Ð9NÒNÐNÑNr   c                 óD   — | j                   j                  d«      dk(  sJ ‚y )NrÁ   z&Aacute;T&amp;T)r”   Ú"substitute_xml_containing_entitiesr•   s    r   ÚDtest_xml_quoting_ignoring_ampersands_when_they_are_part_of_an_entityz[TestEntitySubstitution.test_xml_quoting_ignoring_ampersands_when_they_are_part_of_an_entityv  s&   € à�H‰H×7Ñ7¸ÓFØ ò!ð	
ñ!r   c                 óH   — d}| j                   j                  |«      |k(  sJ ‚y)z:There's no need to do this except inside attribute values.zBob's "bar"Nr˜   )r   Útexts     r   Ú test_quotes_not_html_substitutedz7TestEntitySubstitution.test_quotes_not_html_substituted|  s$   € àˆØ�x‰x×'Ñ'¨Ó-°Ò5Ð5Ñ5r   zmarkup, old))z	foo & barzfoo &amp; bar)zfoo&zfoo&amp;)z
foo&&& barzfoo&amp;&amp;&amp; bar)zx=1&y=2zx=1&amp;y=2)z&123z&amp;123)z&abcz&amp;abc)z
foo &0 barzfoo &amp;0 bar)zfoo &lolwat barzfoo &amp;lolwat barc                 ó„   — | j                   j                  |«      |k(  sJ ‚| j                   j                  |«      |k(  sJ ‚y rO   ©r”   r™   Úsubstitute_html5_raw)r   r   Úolds      r   Ú'test_unambiguous_ampersands_not_escapedz>TestEntitySubstitution.test_unambiguous_ampersands_not_escaped�  s>   € ð �x‰x×'Ñ'¨Ó/°3Ò6Ð6Ð6Ø�x‰x×,Ñ,¨VÓ4¸Ò>Ð>Ñ>r   zmarkup,html,html5,html5raw))ú&divide;ú&amp;divide;rÏ   rÎ   )z
&nonesuch;ú&amp;nonesuch;rÐ   rÐ   )z&#247;ú
&amp;#247;rÑ   rÑ   )z&#xa1;ú
&amp;#xa1;rÒ   rÒ   c                 óÄ   — | j                   j                  |«      |k(  sJ ‚| j                   j                  |«      |k(  sJ ‚| j                   j                  |«      |k(  sJ ‚y rO   )r”   r™   Úsubstitute_html5rË   )r   r   r   Úhtml5Úhtml5raws        r   Ú'test_when_entity_ampersands_are_escapedz>TestEntitySubstitution.test_when_entity_ampersands_are_escaped’  s[   € ð, �x‰x×'Ñ'¨Ó/°4Ò7Ð7Ð7Ø�x‰x×(Ñ(¨Ó0°EÒ9Ð9Ð9Ø�x‰x×,Ñ,¨VÓ4¸Ò@Ð@Ñ@r   zmarkup,expect)z&nosuchentity;z&amp;nosuchentity;c                 ó„   — | j                   j                  |«      |k(  sJ ‚| j                   j                  |«      |k(  sJ ‚y rO   rÊ   )r   r   Úexpects      r   Ú!test_ambiguous_ampersands_escapedz8TestEntitySubstitution.test_ambiguous_ampersands_escaped¬  s>   € ð �x‰x×'Ñ'¨Ó/°6Ò9Ð9Ð9Ø�x‰x×,Ñ,¨VÓ4¸Ò>Ð>Ñ>r   N)r8   r9   r:   r;   r–   r<   r=   r>   rœ   r§   r©   r°   r³   rµ   r¸   r»   r½   r¿   rÂ   rÅ   rÈ   rÍ   r×   rÚ   r?   r   r   r’   r’     s	  „ Ù;ò&ð ‡[�[×ÑØð Sð Cð	
ó
ñAó
ðAòBò4
8ò6òLòMòYò9òGò=òOò
ò6ð
 ‡[�[×ÑØò		
óñ?óð?ð ‡[�[×ÑØ$ò	
óñAóðAð" ‡[�[×ÑØÐBÐCóñ?óñ?r   r’   )r<   rT   rl   rR   r   Ú
bs4.dammitr   r   r   Úobjectr   rA   r’   r?   r   r   ú<module>rÝ      sL   ðã Û Û Û 
Ý ÷ñ ôD0˜ô D0ôNCH˜6ô CHôLV?˜Võ V?r   