
    tf                     p    d Z ddlmZmZ  G d d          Z G d dee          Z G d dee          Zd	S )
zm
Direct unit tests for L{twisted.trial.unittest.SynchronousTestCase} and
L{twisted.trial.unittest.TestCase}.
    )SynchronousTestCaseTestCasec                   $    e Zd ZdZd Zd Zd ZdS )TestCaseMixinz
    L{TestCase} tests.
    c                 n    |                      d          | _        |                      d          | _        dS )z
        Create a couple instances of C{MyTestCase}, each for the same test
        method, to be used in the test methods of this class.
        test_1N)
MyTestCasefirstsecondselfs    _/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/trial/test/test_testcase.pysetUpzTestCaseMixin.setUp   s.    
 __X..
ooh//    c                     |                      | j        | j        k               |                      | j        | j        k               |                     | j        | j        k               dS )z
        In order for one test method to be runnable twice, two TestCase
        instances with the same test method name must not compare as equal.
        N)
assertTruer
   r   assertFalser   s    r   test_equalityzTestCaseMixin.test_equality   s]    
 	
dj0111
dk1222t{233333r   c                 x    i }d|| j         <   d|| j        <   |                     t          |          d           dS )z
        In order for one test method to be runnable twice, two TestCase
        instances with the same test method name should not have the same
        hash value.
        N   )r
   r   assertEquallen)r   	containers     r   test_hashabilityzTestCaseMixin.test_hashability#   sC     	 $	$*!%	$+Y+++++r   N)__name__
__module____qualname____doc__r   r   r    r   r   r   r      sK         0 0 04 4 4	, 	, 	, 	, 	,r   r   c                   *    e Zd Z G d de          ZdS )SynchronousTestCaseTestsc                       e Zd ZdZd ZdS )#SynchronousTestCaseTests.MyTestCasezj
        Some test methods which can be used to test behaviors of
        L{SynchronousTestCase}.
        c                     d S Nr   r   s    r   r   z*SynchronousTestCaseTests.MyTestCase.test_16       Dr   Nr   r   r   r   r   r   r   r   r	   r#   0   -        	 	
	 	 	 	 	r   r	   N)r   r   r   r   r	   r   r   r   r!   r!   /   s?            (     r   r!   c                   *    e Zd Z G d de          ZdS )AsynchronousTestCaseTestsc                       e Zd ZdZd ZdS )$AsynchronousTestCaseTests.MyTestCasez_
        Some test methods which can be used to test behaviors of
        L{TestCase}.
        c                     d S r%   r   r   s    r   r   z+AsynchronousTestCaseTests.MyTestCase.test_1C   r&   r   Nr'   r   r   r   r	   r,   =   r(   r   r	   N)r   r   r   r   r	   r   r   r   r*   r*   <   s>            X     r   r*   N)r   twisted.trial.unittestr   r   r   r!   r*   r   r   r   <module>r/      s     A @ @ @ @ @ @ @, , , , , , , ,D    }.A       /B     r   