403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.217.5
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/test/__pycache__/test_html.cpython-36.pyc
3

�w2_��@s:dZddlZddlZGdd�dej�Zedkr6ej�dS)z&
Tests for the html module functions.
�Nc@seZdZdd�Zdd�ZdS)�	HtmlTestscCs*|jtjd�d�|jtjdd�d�dS)Nz'<script>"&foo;"</script>'z>&#x27;&lt;script&gt;&quot;&amp;foo;&quot;&lt;/script&gt;&#x27;Fz*'&lt;script&gt;"&amp;foo;"&lt;/script&gt;')�assertEqual�html�escape)�self�r�3/opt/alt/python36/lib64/python3.6/test/test_html.py�test_escape
s
zHtmlTests.test_escapecs�ddddg�d���fdd�}���fdd	�}|d
d
�|dd�|dd�x(dnD] }|||�||d|d�qRWddddddddddddg}xntdddd d!d"gd#d$d%d
d&d'g�D]H\}}x>|D]6}||||�x"doD]}||||||�q�Wq�Wq�WxdpD]}	||	d/��qWxdqD]}	||	d8��q"Wx*td9d:d;d<gd=�D]\}}
|||
��qJW|d>d/�|d?d@�|dAd/�xdrD]}||dF��q�WxdsD]}||dK��q�Wx.dtD]&}||dPdQ�||ddPdQ��q�WxduD]}||d
��q�WxdvD]}|||��qW|dXdX�|dYdZ�|d[d\�|d]d^�|d_d`�|dadb�|dcdd�|dedf�|dgdg�|dhdidjdi�|dkdl�|dmdm�dS)wNz&#%dz&#%d;z&#x%xz&#x%x;z$unescape(%r) should have returned %rcs"�jtj|�|�||fd�dS)N)�msg)rr�unescape)�text�expected)�errmsgrrr�checksz&HtmlTests.test_unescape.<locals>.checkcs8x2�D]*}||}�jtj|�|�||fd�qWdS)N)r
)rrr)�numr
�formatr)r�numeric_formatsrrr�	check_nums
z*HtmlTests.test_unescape.<locals>.check_numzno character referencesz&
&	& &&z&0 &9 &a &0; &9; &a;�&�&#�&#x�&#X�&#y�&#xy�&#Xy�;z&#%07dz&#%07d;z&#x%06xz&#x%06x;z&#x%Xz&#x%06Xz&#X%x;z&#X%06x;�A�a�"�&i&i4�A�a�"u☃u􁈴� �X���������u�����������
���u	
€•r�	�	l�N�Zo�&quot;;�&#34;;�&#x22;;�&#X22;;z";�&quot;quot;�
&#34;quot;�&#x22;quot;�&#X22;quot;z"quot;�&quot�&#34�&#x22�&#X22�z"""�&amp�&amp;�&AMP�&AMP;�&Amp�&Amp;z&svadilfari;z&notitu¬itz&notit;u¬it;z&notinu¬inz&notin;u∉z,&notReallyAnExistingNamedCharacterReference;u*¬ReallyAnExistingNamedCharacterReference;z!&CounterClockwiseContourIntegral;u∳z&acE;u∾̳z&acEz&#123; iz{ z2&Eacuteric&Eacute;ric&alphacentauri&alpha;centauriu"ÉricÉric&alphacentauriαcentauriz&co;)rrrrrrr)r#r$)r%r&r'r(r))r*r+r,r-r.r/r0r1)r9r:r;r<)r=r>r?r@)rArBrCrD)rFrGrHrI)rJrK)�zip)rrr�xZformatsr�char�s�endZcpZch�er)rrrr�
test_unescapesj






"

















zHtmlTests.test_unescapeN)�__name__�
__module__�__qualname__r	rRrrrrr	sr�__main__)�__doc__rZunittestZTestCaserrS�mainrrrr�<module>s
]

Youez - 2016 - github.com/yon3zu
LinuXploit