https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /usr/lib/python3/dist-packages/twisted/trial/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current 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

https://t.me/RX1948 - 2025