Sindbad~EG File Manager

Current Path : /proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/
Upload File :
Current File : //proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/test_quopri.cpython-312.pyc

�

'Μgy���ddlZddlZddlZddlZddlZddlmZdZdZd�Z	Gd�dej�Zedk(rej�yy)	�N)�supports_Here's a bunch of special=20

=A1=A2=A3=A4=A5=A6=A7=A8=A9
=AA=AB=AC=AD=AE=AF=B0=B1=B2=B3
=B4=B5=B6=B7=B8=B9=BA=BB=BC=BD=BE
=BF=C0=C1=C2=C3=C4=C5=C6
=C7=C8=C9=CA=CB=CC=CD=CE=CF
=D0=D1=D2=D3=D4=D5=D6=D7
=D8=D9=DA=DB=DC=DD=DE=DF
=E0=E1=E2=E3=E4=E5=E6=E7
=E8=E9=EA=EB=EC=ED=EE=EF
=F0=F1=F2=F3=F4=F5=F6=F7
=F8=F9=FA=FB=FC=FD=FE=FF

characters... have fun!
s�Here's a bunch of special 

���������
����������
�����������
��������
���������
��������
��������
��������
��������
�����
��������

characters... have fun!
c�4���fd�}�j|_|S)Nc�8���|�tj�tj�Vtj}tj}	dt_dt_�|�|t_|t_yy#|t_|t_wxYw�N)�quopri�b2a_qp�a2b_qp)�self�	oldencode�	olddecode�testfuncs   ��-/usr/local/lib/python3.12/test/test_quopri.py�newtestz)withpythonimplementation.<locals>.newtest0so�������=�=�$��
�
�(A��
�
�I��
�
�I�
*� $��
� $��
���� )��
� )��
�)B��!*��
� )��
�s�B�B)�__name__)r
rs` r�withpythonimplementationr/s���
*� �(�(�G���N�c
� �eZdZddddddddd	d
deeffZdZd
Zed��Z	ed��Z
ed��Zed��Zed��Z
ed��Zed��Zed��Zed��Zej&�d��Zej&�d��Zy)�QuopriTestCase)�hellor)�!hello
        there
        worldr)�"hello
        there
        world
r)s���s	=81=82=83)shello shello=20)shello	shello=09)slxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx��������xxxxxxxxxxxxxxxxxx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yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz))�hello worlds
hello=20world)shello	worlds
hello=09world))r�hello_world)rs
hello=5Fworldc�v�|jD]*\}}|jtj|�|��,yr)�STRINGS�assertEqualr�encodestring�r
�p�es   r�test_encodestringz QuopriTestCase.test_encodestring��/���L�L�D�A�q����V�0�0��3�Q�7�!rc�v�|jD]*\}}|jtj|�|��,yr)rrr�decodestringrs   r�test_decodestringz QuopriTestCase.test_decodestring�r#rc�X�d\}}|jtj|�|�y)N)s123=fours	123==four)rrr%)r
�
decoded_value�
encoded_values   r�test_decodestring_double_equalsz.QuopriTestCase.test_decodestring_double_equals�s*��(C�$�
�}�����,�,�]�;�]�Krc��|jD]=\}}|jtjtj|��|��?yr)rrrr%rrs   r�test_idempotent_stringz%QuopriTestCase.test_idempotent_string�s:���L�L�D�A�q����V�0�0��1D�1D�Q�1G�H�!�L�!rc���|jD]f\}}tj|�}tj�}tj||d��|j|j
�|��hy)NF��	quotetabs)r�io�BytesIOr�encoder�getvalue�r
r r!�infp�outfps     r�test_encodezQuopriTestCase.test_encode�sS���L�L�D�A�q��:�:�a�=�D��J�J�L�E��M�M�$���7����U�^�^�-�q�1�	!rc���|jD]d\}}tj|�}tj�}tj||�|j|j
�|��fyr)rr0r1r�decoderr3r4s     r�test_decodezQuopriTestCase.test_decode�sQ���L�L�D�A�q��:�:�a�=�D��J�J�L�E��M�M�$��&����U�^�^�-�q�1�	!rc���|jD]Q\}}|jtj|d��|�|jtj|�|��Sy)NTr.)�ESTRINGSrrrr%rs   r�test_embedded_wszQuopriTestCase.test_embedded_ws�sL���M�M�D�A�q����V�0�0��d�C�Q�G����V�0�0��3�Q�7�"rc�z�|jD],\}}|jtj|d��|��.y�NT)�header)�HSTRINGSrrrrs   r�test_encode_headerz!QuopriTestCase.test_encode_header��1���M�M�D�A�q����V�0�0��4�@�!�D�"rc�z�|jD],\}}|jtj|d��|��.yr?)rArrr%rs   r�test_decode_headerz!QuopriTestCase.test_decode_header�rCrc�V�|jd\}}tjtjdgtj
tj
��}|j
|jj�|j|�\}}|jd�j�}|jd�j�}t|�t|�k(sJ�tt|��D]}|j||||��|j||�y)N����-mquopri��stdin�stdout�latin-1)r�
subprocess�Popen�sys�
executable�PIPE�
addCleanuprK�close�communicater9�
splitlines�len�ranger)r
r r!�process�cout�cerr�is       r�test_scriptencodez QuopriTestCase.test_scriptencode�s������b�!���A��"�"�C�N�N�J�#?�)3������R��������,�,�-��(�(��+�
��d��{�{�9�%�0�0�2��
�H�H�Y��*�*�,���4�y�#�a�&� � � ��s�4�y�!�A����T�!�W�a��d�+�"�����q�!rc���|jd\}}tjtjddgtj
tj
��}|j
|jj�|j|�\}}|jd�}|jd�}|j|j�|j��y)NrGrHz-drIrL)
rrMrNrOrPrQrRrKrSrTr9rrU)r
r r!rXrYrZs      r�test_scriptdecodez QuopriTestCase.test_scriptdecode�s������b�!���A��"�"�C�N�N�J��#E�)3������R��������,�,�-��(�(��+�
��d��{�{�9�%��
�H�H�Y���������*�A�L�L�N�;rN)r�
__module__�__qualname__�	DECSAMPLE�	ENCSAMPLErr<rArr"r&r*r,r7r:r=rBrEr�requires_subprocessr\r^�rrrrAsS��
	�	�
	�	(� �!�	6�	Y�
	�
	Q�	Q�
�I��_0
�G�f
�H�
�H�
�8��8��8��8��L��L��M��M��2��2��2��2��8��8�
�E��E��E��E�!�W� � �"�"�#�"� !�W� � �"�<�#�<rr�__main__)�unittestrOr0rMr�testrrbrar�TestCaserr�mainrdrr�<module>rjsV�����
��
�	�&
�	�&�$Q<�X�&�&�Q<�f�z���H�M�M�O�r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists