Your IP : 216.73.216.213


Current Path : /opt/alt/python34/lib64/python3.4/test/test_email/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/test/test_email/__pycache__/test_parser.cpython-34.pyo

�
f f��@swddlZddlZddlZddlmZddlmZGdd�de�Zedkrsej	�ndS)�N)�Message)�
TestEmailBasec@sSeZdZGdd�de�Zejjdd�Zdd�Z	dd�Z
d	S)
�TestCustomMessagecs"eZdZ�fdd�Z�S)zTestCustomMessage.MyMessagecs||_t�j�dS)N)�check_policy�super�__init__)�self�policy)�	__class__��@/opt/alt/python34/lib64/python3.4/test/test_email/test_parser.pyrs	z$TestCustomMessage.MyMessage.__init__)�__name__�
__module__�__qualname__rrr)r
r�	MyMessage
sr�linesepZboocCsKtjd|jd|j�}|j||j�|j|j|j�dS)NzSubject: bogus

msg
r	)�emailZmessage_from_stringr�MyPolicy�assertIsInstance�assertIsr)r�msgrrr�7test_custom_message_gets_policy_if_possible_from_strings
		zITestCustomMessage.test_custom_message_gets_policy_if_possible_from_stringcCsZtjd�}tj||jd|j�}|j||j�|j|j|j�dS)NzSubject: bogus

msg
r	)	�io�StringIOrZmessage_from_filerrrrr)rZsource_filerrrr�5test_custom_message_gets_policy_if_possible_from_files		zGTestCustomMessage.test_custom_message_gets_policy_if_possible_from_fileN)r
rrrrrr	Zclonerrrrrrrrsr�__main__)
rrZunittestZ
email.messagerZtest.test_emailrrr
�mainrrrr�<module>s