
    Vh                     \    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y	)
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y)TestCaseMixinz
    L{TestCase} tests.
    c                 \    | j                  d      | _        | j                  d      | _        y)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    P/home/dcms/DCMS/lib/python3.12/site-packages/twisted/trial/test/test_testcase.pysetUpzTestCaseMixin.setUp   s$    
 __X.
ooh/    c                     | j                  | j                  | j                  k(         | j                  | j                  | j                  k7         | j                  | j                  | j                  k(         y)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   sQ    
 	

djj01

dkk12t{{23r   c                 z    i }d|| j                   <   d|| j                  <   | j                  t        |      d       y)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#   s9     	 $	$**!%	$++Y+r   N)__name__
__module____qualname____doc__r   r   r    r   r   r   r      s    04	,r   r   c                   "    e Zd Z G d de      Zy)SynchronousTestCaseTestsc                       e Zd ZdZd Zy)#SynchronousTestCaseTests.MyTestCasezj
        Some test methods which can be used to test behaviors of
        L{SynchronousTestCase}.
        c                      y Nr   r   s    r   r   z*SynchronousTestCaseTests.MyTestCase.test_16       r   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y)AsynchronousTestCaseTestsc                       e Zd ZdZd Zy)$AsynchronousTestCaseTests.MyTestCasez_
        Some test methods which can be used to test behaviors of
        L{TestCase}.
        c                      y 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/      s9    A, ,D}.A /B r   