HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/trial/test/__pycache__/test_testcase.cpython-38.pyc
U


W[��@s\dZddlmZmZddlmZmZGdd�de�ZGdd�dee�Z	Gdd	�d	ee�Z
d
S)zm
Direct unit tests for L{twisted.trial.unittest.SynchronousTestCase} and
L{twisted.trial.unittest.TestCase}.
�)�division�absolute_import)�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)Z
assertTruer	r
ZassertFalserr
r
r�
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�)r	r
ZassertEqual�len)rZ	containerr
r
r�test_hashability%s

zTestCaseMixin.test_hashabilityN)�__name__�
__module__�__qualname__�__doc__rrrr
r
r
rrs	
rc@seZdZGdd�de�ZdS)�SynchronousTestCaseTestsc@seZdZdZdd�ZdS)z#SynchronousTestCaseTests.MyTestCasezj
        Some test methods which can be used to test behaviors of
        L{SynchronousTestCase}.
        cCsdS�Nr
rr
r
rr8sz*SynchronousTestCaseTests.MyTestCase.test_1N�rrrrrr
r
r
rr3srN)rrrrrr
r
r
rr2src@seZdZGdd�de�ZdS)�AsynchronousTestCaseTestsc@seZdZdZdd�ZdS)z$AsynchronousTestCaseTests.MyTestCasez_
        Some test methods which can be used to test behaviors of
        L{TestCase}.
        cCsdSrr
rr
r
rrEsz+AsynchronousTestCaseTests.MyTestCase.test_1Nrr
r
r
rr@srN)rrrrrr
r
r
rr?srN)rZ
__future__rrZtwisted.trial.unittestrr�objectrrrr
r
r
r�<module>s
$