
    YfE                     P    d Z ddlZddlmZ ddlmZ  G d dej                  ZdS )z|
The L{_response} module contains constants for all standard HTTP codes, along
with a mapping to the corresponding phrases.
    N)unittest)
_responsesc                       e Zd ZddZdS )ResponseTestsreturnNc                    t          t                    D ]r}|dk    r	t          d |D                       rPt          t          |          }|                     |t
                     |                     |t          j                   sdS )z
        All constants besides C{RESPONSES} defined in L{_response} are
        integers and are keys in C{RESPONSES}.
        	RESPONSESc              3   >   K   | ]}|d k    p|t           j        v V  dS )_N)stringascii_uppercase).0cs     V/var/www/html/env/lib/python3.11/site-packages/twisted/web/test/test_web__responses.py	<genexpr>z/ResponseTests.test_constants.<locals>.<genexpr>   s3      JJAH;V%; ;JJJJJJ    N)dirr   allgetattrassertIsInstanceintassertInr	   )selfsymvals      r   test_constantszResponseTests.test_constants   s    
 z?? 	9 	9Ck!!JJcJJJJJ 9j#..%%c3///c:#7888	9 	9r   )r   N)__name__
__module____qualname__r    r   r   r   r      s(        9 9 9 9 9 9r   r   )__doc__r   twisted.trialr   twisted.webr   TestCaser   r    r   r   <module>r%      su      " " " " " " " " " " " "9 9 9 9 9H% 9 9 9 9 9r   