File: //usr/local/lib/python3.10/test/test_email/__pycache__/test_headerregistry.cpython-310.opt-2.pyc
o
�i� � @ sn d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dlm Z m
Z
d dlmZ d dlm
Z
mZ d dlmZ e� ZG d d
� d
e �ZG dd� de �ZG d
d� de�Ze
G dd� de��Ze
G dd� de��Ze
G dd� de��Ze
G dd� de��Ze
G dd� de��Ze
G dd� de��Ze
G dd� de��ZG dd� de �ZG dd � d e�Zed!kr�e� � dS dS )"� N)�errors��policy)�Message)�
TestEmailBase�parameterize)�headerregistry)�Address�Group)� ALWAYS_EQc @ s` e Zd Zdd� Zdd� ZG dd� d�Zdd� ZG d d
� d
�Zdd� Zd
d� Z dd� Z
dd� ZdS )�TestHeaderRegistryc C s2 t �� }|dd�}| �|t j� | �|t j� d S �N�foobar�test�r �HeaderRegistry�assertIsInstance�
BaseHeader�UnstructuredHeader��self�factory�h� r �@/usr/local/lib/python3.10/test/test_email/test_headerregistry.py� test_arbitrary_name_unstructured s
z3TestHeaderRegistry.test_arbitrary_name_unstructuredc C s@ t �� }| �d|j� |dd�}| �|t j� | �|t j� d S )N�Subjectr )r r ZassertNotIn�registryr r �UniqueUnstructuredHeaderr r r r �test_name_case_ignored s
z)TestHeaderRegistry.test_name_case_ignoredc @ s e Zd Zdd� ZdS )zTestHeaderRegistry.FooBasec O s d S �Nr )r �args�kwr r r �__init__! s z#TestHeaderRegistry.FooBase.__init__N)�__name__�
__module__�__qualname__r# r r r r �FooBase � r'