o
    Òó·iR  ã                   @   s0   d Z ddlmZ ddlmZ G dd„ deƒZdS )z%
Tests for L{twisted.internet.error}
é    )Úerror)ÚSynchronousTestCasec                   @   s$   e Zd ZdZddd„Zddd„ZdS )	ÚConnectionAbortedTestszN
    Tests for the L{twisted.internet.error.ConnectionAborted} exception.
    ÚreturnNc                 C   s   |   dtt ¡ ƒ¡ dS )z†
        The default message of L{ConnectionAborted} is a sentence which points
        to L{ITCPTransport.abortConnection()}
        zCConnection was aborted locally using ITCPTransport.abortConnection.N©ÚassertEqualÚstrr   ZConnectionAborted©Úself© r   úfC:\Users\psant\Downloads\PAF backend\school\venv\Lib\site-packages\twisted/internet/test/test_error.pyÚtest_str   s   
þzConnectionAbortedTests.test_strc                 C   s   |   dtt dd¡ƒ¡ dS )zc
        Any arguments passed to L{ConnectionAborted} are included in its
        message.
        zLConnection was aborted locally using ITCPTransport.abortConnection: foo bar.ZfooÚbarNr   r	   r   r   r   Útest_strArgs   s   úz#ConnectionAbortedTests.test_strArgs)r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s    

r   N)r   Ztwisted.internetr   Ztwisted.trial.unittestr   r   r   r   r   r   Ú<module>   s   