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_doctest.cpython-310.pyc
o

�b��@s>dZddlmZmZmZmZddlmZGdd�dej�Z	dS)z!
Test Twisted's doctest support.
�)�itrial�reporter�runner�unittest)�mockdoctestc@s:eZdZdZdd�Zdd�Zdd�Zdd	d
�Zdd�Zd
S)�RunnersTestsz.
    Tests for Twisted's doctest support.
    cCs<t��}|�t�}d}|jD]
}|�|t�|����qdS)zq
        Check that the id() of the doctests' case object contains the FQPN of
        the actual tests.
        z&twisted.trial.test.mockdoctest.CounterN)	r�
TestLoader�loadDoctestsr�_tests�assertInr�	ITestCase�id)�self�loader�suite�idPrefix�test�r�A/usr/lib/python3/dist-packages/twisted/trial/test/test_doctest.py�test_ids

�zRunnersTests.test_idcCs&t��}|�t�}|�d|���dS)zP
        L{loadDoctests} loads all of the doctests in the given module.
        �N)rrr	r�assertEqual�countTestCases)rrrrrr�test_basicTrialIntegrations
z'RunnersTests.test_basicTrialIntegrationcCs6t��}|�|�|�d|j�|�dt|j��dS)z4
        Run C{suite} and check the result.
        ��N)r�
TestResult�runr�	successes�len�failures)rr�resultrrr�_testRun%s
zRunnersTests._testRun�cCst���t�}|�|�dS)zL
        Trial can correctly run doctests with its xUnit test APIs.
        N�rrr	rr")r�countrrrr�test_expectedResults.sz!RunnersTests.test_expectedResultscCs&t���t�}|�|�|�|�dS)z9
        Doctests should be runnable repeatably.
        Nr$)rrrrr�test_repeatable5s
zRunnersTests.test_repeatableN)r#)	�__name__�
__module__�__qualname__�__doc__rrr"r&r'rrrrr
s
	rN)
r+�
twisted.trialrrrr�twisted.trial.testr�SynchronousTestCaserrrrr�<module>s