File: D:/Python311/Lib/test/test_email/__pycache__/test_inversion.cpython-311.opt-2.pyc
�
��VcC � � � d dl Z d dlZd dlmZmZ d dlmZ d dlmZ d dl m
Z
mZ d� Ze G d� de
� � � � Z
ed k r ej � � dS dS )
� N)�policy�message_from_bytes)�EmailMessage)�BytesGenerator)�
TestEmailBase�parameterizec �: �� | � � � }|d � � � st d� � �t |d � � t |d � � � � � z
�d� �fd�|D � � � � S )Nr zFirst line must contain texts
c �N �� g | ]!}t |� � �k r
|�d � nd��"S )N� )�len)�.0�x�stripamts ��2D:\Python311\Lib\test\test_email\test_inversion.py�
<listcomp>zdedent.<locals>.<listcomp> sE �� � � � �� �Q����)� 2��8�9�9���s� � � r )�
splitlines�strip�
ValueErrorr �lstrip�join)�bstr�linesr s @r �dedentr s� �� ��O�O���E���8�>�>��� 9��7�8�8�8��5��8�}�}�s�5��8�?�?�#4�#4�5�5�5�H��<�<� � � � �� � � �� � r c � � e Zd Zej ZeZd� Z ed� � f ed� � fd�Z e
d�� � e
dd� � � e
dd
� � � d�Zd� Zd
S )�
TestInversionc � � t |t j �� � }t j � � }t |� � }|� |� � | � |� � � |� � d S )N�r ) r r �SMTP�io�BytesIOr �flatten�assertEqual�getvalue)�self�msg�m�b�gs r �msg_as_inputzTestInversion.msg_as_input sa � ��s�6�;�7�7�7���J�L�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 �H � | � � � }d|d<