U
    
W[¢  ã                   @   s\   d dl mZ d dlmZ d dlmZ dZddddd	gZG d
d„ dejƒZ	G dd„ deƒZ
dS )é    )Úunittest)ÚSynchronousTestCase©ÚdictsL   "This is a dqstring \w\i\t\h boring stuff like: \"" and t\hes\"e are a\to\mss,   This is a dqstring with boring stuff like: "s   ands   thes"es   ares   atomsc                   @   s   e Zd Zdd„ ZdS )Ú
ParamTestsc                 C   s<   g }t }t |¡\}}|dkr q,| |¡ q|  |t¡ dS )z!Testing command response handlingN)ÚparamStringr   Z
parseParamÚappendÚassertEqualÚ
goodparams)ÚselfZparamsÚrestZparam© r   ú8/usr/lib/python3/dist-packages/twisted/test/test_dict.pyÚtestParseParam   s    zParamTests.testParseParamN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s   r   c                   @   s   e Zd ZdZdd„ ZdS )ÚDictDeprecationTestsz2
    L{twisted.protocols.dict} is deprecated.
    c                 C   sF   ddl m} | |  | jg¡}|  dt|ƒ¡ |  d|d d ¡ dS )zO
        L{twisted.protocols.dict} is deprecated since Twisted 17.9.0.
        r   r   é   zatwisted.protocols.dict was deprecated in Twisted 17.9.0: There is no replacement for this module.ÚmessageN)Útwisted.protocolsr   ZflushWarningsÚtest_dictDeprecationr	   Úlen)r   r   ZwarningsShownr   r   r   r      s    
ýz)DictDeprecationTests.test_dictDeprecationN)r   r   r   Ú__doc__r   r   r   r   r   r      s   r   N)Ztwisted.trialr   Ztwisted.trial.unittestr   r   r   r   r
   ZTestCaser   r   r   r   r   r   Ú<module>   s   