403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.217.130
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_unicodedata.cpython-36.pyc
3

x2_f2�@s�dZddlZddlZddlZddlmZdZdZGdd�dej�Z	Gdd	�d	ej�Z
Gd
d�de
�ZGdd
�d
e
�Ze
dkr�ej�dS)z� Test script for the unicodedata module.

    Written by Marc-Andre Lemburg (mal@lemburg.com).

    (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.

�N)�
script_helperzutf-8�
surrogatepassc@seZdZdZdd�ZdS)�UnicodeMethodsTestZ(c1fa98674a683aa8a8d8dee0c84494f8d36346e6cCsntj�}�xHtd�D�]:}t|�}d|j�d|j�d|j�d|j�d|j�d|j	�d|j
�d|j�d|j�d|dj�d|dj�d|dj�d|dj�d|dj�d|dj	�d|dj
�d|dj�d|dj�|j
�|j�|j�|dj
�|dj�|dj�|dj�g}|jdj|�jtt��qW|j�}|j||j�dS)NiZ01�abcZ123z 	�ABC�)�hashlib�sha1�range�chr�isalnum�isalpha�	isdecimal�isdigit�islower�	isnumeric�isspace�istitle�isupper�lower�upper�title�update�join�encode�encoding�errors�	hexdigest�assertEqual�expectedchecksum)�self�h�i�char�data�result�r&�:/opt/alt/python36/lib64/python3.6/test/test_unicodedata.py�test_method_checksums>











z'UnicodeMethodsTest.test_method_checksumN)�__name__�
__module__�__qualname__rr(r&r&r&r'rsrc@seZdZdd�Zdd�ZdS)�UnicodeDatabaseTestcCsddl}||_dS)Nr)�unicodedata�db)r r-r&r&r'�setUpFszUnicodeDatabaseTest.setUpcCs|`dS)N)r.)r r&r&r'�tearDownLszUnicodeDatabaseTest.tearDownN)r)r*r+r/r0r&r&r&r'r,Dsr,c@s�eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zd S)!�UnicodeFunctionsTestZ(f891b1e6430c712531b9bc935a38e22d78ba1bf3cCs�g}tj�}x�td�D]�}t|�}t|jj|d�d�t|jj|d�d�t|jj|d�d�|jj	|�|jj
|�|jj|�t|jj
|��t|jj|��g}|jdj|�jd��qW|j�}|j||j�dS)	Ni�z.12gr�ascii���r4r4)rr	r
r�formatr.�digit�numeric�decimal�category�
bidirectional�
decomposition�str�mirrored�	combiningrrrrrr)r r$r!r"r#r%r&r&r'�test_function_checksumTs


z+UnicodeFunctionsTest.test_function_checksumcCs�|j|jjdd�d�|j|jjd�d�|j|jjdd�d�|j|jjd�d�|j|jjdd�d�|j|jjd�d�|jt|jj�|jt|jjd	�|jt|jjd
�dS)N�A�9�	u⅛u⑨u𠀀u𝟽��xx�x)rr.r6�assertRaises�	TypeError�
ValueError)r r&r&r'�
test_digitiszUnicodeFunctionsTest.test_digitcCs�|j|jjdd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d	�|j|jjd
d�d�|j|jjd�d�|jt|jj�|jt|jjd
�|jt|jjd�dS)Nr@rArBu⅛g�?u⑨g"@u꘧g@u𠀀u𐄪i(#rDrE)rr.r7rFrGrH)r r&r&r'�test_numericusz!UnicodeFunctionsTest.test_numericcCs�|j|jjdd�d�|j|jjd�d�|j|jjdd�d�|j|jjdd�d�|j|jjdd�d�|j|jjd�d�|jt|jj�|jt|jjd	�|jt|jjd
�dS)Nr@rArBu⅛u⑨u𠀀u𝟽rCrDrE)rr.r8rFrGrH)r r&r&r'�test_decimal�sz!UnicodeFunctionsTest.test_decimalcCs�|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd	�d
�|jt|jj�|jt|jjd�dS)Nu￾ZCn�aZLlr@ZLuu𠀀ZLou𐄪ZNorD)rr.r9rFrG)r r&r&r'�
test_category�sz"UnicodeFunctionsTest.test_categorycCsv|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d�|jt|jj�|jt|jjd�dS)	Nu￾r� ZWSr@�Lu𠀀rD)rr.r:rFrG)r r&r&r'�test_bidirectional�sz'UnicodeFunctionsTest.test_bidirectionalcCsN|j|jjd�d�|j|jjd�d�|jt|jj�|jt|jjd�dS)Nu￾r�¼z<fraction> 0031 2044 0034rD)rr.r;rFrG)r r&r&r'�test_decomposition�sz'UnicodeFunctionsTest.test_decompositioncCsv|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d�|jt|jj�|jt|jjd�dS)Nu￾rrLu∁r2u𠀀rD)rr.r=rFrG)r r&r&r'�
test_mirrored�sz"UnicodeFunctionsTest.test_mirroredcCsv|j|jjd�d�|j|jjd�d�|j|jjd�d�|j|jjd�d�|jt|jj�|jt|jjd�dS)Nu￾rrLu⃡��u𠀀rD)rr.r>rFrG)r r&r&r'�test_combining�sz#UnicodeFunctionsTest.test_combiningcCs>|jt|jj�|jt|jjdd�|j|jjdd�d�dS)N�unknownrD�NFKCr)rFrGr.�	normalizerHr)r r&r&r'�test_normalize�sz#UnicodeFunctionsTest.test_normalizecCs,d}x"|D]}|j|jjd|�|�q
WdS)N�େ̀ା�ᄀ̀ᅡ�Li̍t-sṳ́uमार्क ज़uुकेरबर्गuकिर्गिज़uस्तान�NFC�.मार्क ज़ुकेरबर्ग�'किर्गिज़स्तान)rZr[r\r^r_)rr.rX)r Zcomposed�textr&r&r'�	test_pr29�s
zUnicodeFunctionsTest.test_pr29cCs2ddd}ddd}|j|jjd|�|�dS)NuC̸�uÇ�Çr])rr.rX)r rL�br&r&r'�test_issue10254�sz$UnicodeFunctionsTest.test_issue10254cCs^d}d}d}d}d}d}|j|jjd|�|�|j|jjd|�|�|j|jjd|�|�dS)Nu	ᄀᅶᆨu	기ᆧu기ᆧu	기ᇃu기ᇃr])rr.rX)r Zu1176_str_aZu1176_str_bZu11a7_str_aZu11a7_str_bZu11c3_str_aZu11c3_str_br&r&r'�test_issue29456�sz$UnicodeFunctionsTest.test_issue29456cCs�|jj}|jt|d�|jt|t��|jt|d�|jt|d�|j|d�d�|j|d�d�|j|d�d	�|j|d
�d�|j|d�d
�|j|d�d�|j|d�d	�dS)N�arZra��NrNZNau좔�Wuヲ�Hu?�Fu‐r@u𠀀)r.�east_asian_widthrFrG�	bytearrayr)r Zeawr&r&r'�test_east_asian_width�sz*UnicodeFunctionsTest.test_east_asian_widthcCs.|j|jjjd�d�|j|jjd�d�dS)Nu⌚rirj)rr.�	ucd_3_2_0rm)r r&r&r'�!test_east_asian_width_9_0_changes�sz6UnicodeFunctionsTest.test_east_asian_width_9_0_changesN)r)r*r+rr?rIrJrKrMrPrRrSrUrYrarerfrorqr&r&r&r'r1Os 

			
r1c@sLeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dS)�UnicodeMiscTestcCs,d}tjd|�}d}|j||jjd��dS)NzGimport sys;sys.modules['unicodedata'] = None;eval("'\\N{SOFT HYPHEN}'")z-czUSyntaxError: (unicode error) \N escapes not supported (can't load unicodedata module)r3)rZassert_python_failureZassertIn�err�decode)r �coder%�errorr&r&r'�#test_failed_import_during_compiling�sz3UnicodeMiscTest.test_failed_import_during_compilingcCsbd}xJtd�D]>}t|�}|jj|d�}|dkr|j||jj|��|d7}qW|j|dk�dS)Nrir2�
r4r4)r
rr.r8rr7�
assertTrue)r �countr"�c�decr&r&r'�test_decimal_numeric_consistentsz/UnicodeMiscTest.test_decimal_numeric_consistentcCsbd}xJtd�D]>}t|�}|jj|d�}|dkr|j||jj|��|d7}qW|j|dk�dS)Nrir2rxr4r4)r
rr.r6rr7ry)r rzr"r{r|r&r&r'�test_digit_numeric_consistentsz-UnicodeMiscTest.test_digit_numeric_consistentcCs|j|jjd�d�dS)NzGOTHIC LETTER FAIHUu𐍆)rr.�lookup)r r&r&r'�test_bug_1704793sz UnicodeMiscTest.test_bug_1704793cCsfddl}|j|jd��|j|jjd��|jdj�dk�|jdj�dk�|jdj�dk�dS)Nru༺rLr@uᵹuꝽ�.)r-ryr=rpr)r r-r&r&r'�test_ucd_510!szUnicodeMiscTest.test_ucd_510cCs6|jdj�d�|jdd�ttjd�D�dg�dS)NuᵹcSs8g|]0}dt|�j�t|�j�t|�j�kr|�qS)�)rrrr)�.0r{r&r&r'�
<listcomp>1sz1UnicodeMiscTest.test_bug_5828.<locals>.<listcomp>r2r)rrr
�sys�
maxunicode)r r&r&r'�
test_bug_5828,szUnicodeMiscTest.test_bug_5828cCs4|jdj�d�|jdj�d�|jdj�d�dS)NuDŽuDžudž)rr)r r&r&r'�
test_bug_49717szUnicodeMiscTest.test_bug_4971cCs\xVtd�D]J}t|�dj�}|dkr>|jt|�d
d|�q
|jt|�dd|�q
WdS)Nir@rx���
�����( �) �z\u%.4x should be a linebreakr2z \u%.4x should not be a linebreak)
rxr�r�r�r�r�r�r�r�r�)r
r�
splitlinesr�len)r r"�linesr&r&r'�test_linebreak_7643=sz#UnicodeMiscTest.test_linebreak_7643N)r)r*r+rwr}r~r�r�r�r�r�r&r&r&r'rr�s

rr�__main__)�__doc__r�ZunittestrZtest.supportrrrZTestCaserr,r1rrr)�mainr&r&r&r'�<module>s0$V

Youez - 2016 - github.com/yon3zu
LinuXploit