
    VhE                     R    d Z ddlZddlmZ ddlmZ  G d dej                        Zy)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y)ResponseTestsNc                     t        t              D ]a  }|dk(  r	t        d |D              st        t        |      }| j	                  |t
               | j                  |t        j                         c y)z
        All constants besides C{RESPONSES} defined in L{_response} are
        integers and are keys in C{RESPONSES}.
        	RESPONSESc              3   N   K   | ]  }|d k(  xs |t         j                  v   yw)_N)stringascii_uppercase).0cs     T/home/dcms/DCMS/lib/python3.12/site-packages/twisted/web/test/test_web__responses.py	<genexpr>z/ResponseTests.test_constants.<locals>.<genexpr>   s'     JAH;V%;%; ;;Js   #%N)dirr   allgetattrassertIsInstanceintassertInr   )selfsymvals      r   test_constantszResponseTests.test_constants   s`    
 z? 	9Ck!JcJJj#.%%c3/c:#7#78	9    )returnN)__name__
__module____qualname__r    r   r   r   r      s    9r   r   )__doc__r   twisted.trialr   twisted.webr   TestCaser   r    r   r   <module>r%      s'     " "9H%% 9r   