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_doctest.cpython-38.pyc
U


W[��@sNdZddlmZmZddlmZmZmZmZddl	m
Z
Gdd�dej�ZdS)z!
Test Twisted's doctest support.
�)�absolute_import�division)�itrial�runner�unittest�reporter)�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�loadDoctestsrZ_testsZassertInrZ	ITestCase�id)�self�loader�suiteZidPrefixZtest�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)rr
rr�assertEqualZcountTestCases)r
rrrrr�test_basicTrialIntegrations
z'RunnersTests.test_basicTrialIntegrationcCs6t��}|�|�|�d|j�|�dt|j��dS)z4
        Run C{suite} and check the result.
        ��N)rZ
TestResult�runrZ	successes�lenZfailures)r
r�resultrrr�_testRun(s
zRunnersTests._testRun�cCst���t�}|�|�dS)zL
        Trial can correctly run doctests with its xUnit test APIs.
        N�rr
rrr)r
�countrrrr�test_expectedResults2sz!RunnersTests.test_expectedResultscCs&t���t�}|�|�|�|�dS)z9
        Doctests should be runnable repeatably.
        Nr)r
rrrr�test_repeatable:s
zRunnersTests.test_repeatableN)r)	�__name__�
__module__�__qualname__�__doc__rrrrr rrrrr	s	

r	N)
r$Z
__future__rrZ
twisted.trialrrrrZtwisted.trial.testrZSynchronousTestCaser	rrrr�<module>s