HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/twisted/trial/test/__pycache__/test_testcase.cpython-310.pyc
o

�b��@sJdZddlmZmZGdd�d�ZGdd�dee�ZGdd�dee�Zd	S)
zm
Direct unit tests for L{twisted.trial.unittest.SynchronousTestCase} and
L{twisted.trial.unittest.TestCase}.
�)�SynchronousTestCase�TestCasec@s(eZdZdZdd�Zdd�Zdd�ZdS)	�
TestCaseMixinz
    L{TestCase} tests.
    cCs|�d�|_|�d�|_dS)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��self�r�B/usr/lib/python3/dist-packages/twisted/trial/test/test_testcase.py�setUpszTestCaseMixin.setUpcCs:|�|j|jk�|�|j|jk�|�|j|jk�dS)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)�
assertTruerr�assertFalser	rrr�
test_equalityszTestCaseMixin.test_equalitycCs,i}d||j<d||j<|�t|�d�dS)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�)rr�assertEqual�len)r
�	containerrrr�test_hashability#s

zTestCaseMixin.test_hashabilityN)�__name__�
__module__�__qualname__�__doc__r
rrrrrrr
s
	rc@�eZdZGdd�de�ZdS)�SynchronousTestCaseTestsc@�eZdZdZdd�ZdS)z#SynchronousTestCaseTests.MyTestCasezj
        Some test methods which can be used to test behaviors of
        L{SynchronousTestCase}.
        cC�dS�Nrr	rrrr6�z*SynchronousTestCaseTests.MyTestCase.test_1N�rrrrrrrrrr0�rN)rrrrrrrrrr/�rc@r)�AsynchronousTestCaseTestsc@r)z$AsynchronousTestCaseTests.MyTestCasez_
        Some test methods which can be used to test behaviors of
        L{TestCase}.
        cCrrrr	rrrrCrz+AsynchronousTestCaseTests.MyTestCase.test_1Nr rrrrr=r!rN)rrrrrrrrrr#<r"r#N)r�twisted.trial.unittestrrrrr#rrrr�<module>s
"