o
    ¯bB  ã                   @   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„ Zdd„ ZdS )ÚConnectionAbortedTestszN
    Tests for the L{twisted.internet.error.ConnectionAborted} exception.
    c                 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   ÚConnectionAborted©Úself© r   úB/usr/lib/python3/dist-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.ÚfooÚbarNr   r	   r   r   r   Útest_strArgs   s   úz#ConnectionAbortedTests.test_strArgsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s    
r   N)r   Útwisted.internetr   Útwisted.trial.unittestr   r   r   r   r   r   Ú<module>   s   