File: //usr/lib/python3/dist-packages/twisted/web/test/__pycache__/test_web__responses.cpython-38.pyc
U
W[m � @ sJ d Z ddlmZmZ ddlZddlmZ ddlmZ G dd� dej �Z
dS )z|
The L{_response} module contains constants for all standard HTTP codes, along
with a mapping to the corresponding phrases.
� )�division�absolute_importN)�unittest)�
_responsesc @ s e Zd Zdd� ZdS )�
ResponseTestsc C sR t t�D ]D}|dkrqtdd� |D ��rtt|�}| �|t� | �|tj� qdS )z
All constants besides C{RESPONSES} defined in L{_response} are
integers and are keys in C{RESPONSES}.
� RESPONSESc s s | ]}|d kp|t jkV qdS )�_N)�stringZascii_uppercase)�.0�c� r �F/usr/lib/python3/dist-packages/twisted/web/test/test_web__responses.py� <genexpr> s z/ResponseTests.test_constants.<locals>.<genexpr>N)�dirr �all�getattrZassertIsInstance�intZassertInr )�selfZsym�valr r r
�test_constants s
zResponseTests.test_constantsN)�__name__�
__module__�__qualname__r r r r r
r s r )�__doc__Z
__future__r r r Z
twisted.trialr Ztwisted.webr ZTestCaser r r r r
�<module> s