%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/trial/test/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/trial/test/__pycache__/test_doctest.cpython-312.pyc

�

Ϫ�f��^�dZddlZddlmZmZmZmZddlmZGd�dej�Z
y)z!
Test Twisted's doctest support.
�N)�itrial�reporter�runner�unittest)�mockdoctestc�^�eZdZdZdd�Zdd�Zdejddfd�Zdde	ddfd	�Z
dd
�Zy)
�RunnersTestsz.
    Tests for Twisted's doctest support.
    �returnNc���tj�}|jt�}d}|jD]5}|j|t
j|�j���7y)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�tests     �A/usr/lib/python3/dist-packages/twisted/trial/test/test_doctest.py�test_idzRunnersTests.test_ids^��
�"�"�$���#�#�K�0��;���L�L�	A�D��M�M�(�F�$4�$4�T�$:�$=�$=�$?�@�	A�c��tj�}|jt�}|j	d|j��y)zP
        L{loadDoctests} loads all of the doctests in the given module.
        �N)rrr
r�assertEqual�countTestCases)rrrs   r�test_basicTrialIntegrationz'RunnersTests.test_basicTrialIntegrations;���"�"�$���#�#�K�0������E�0�0�2�3rrc���tj�}|j|�|jd|j�|jdt|j��y)z4
        Run C{suite} and check the result.
        ��N)r�
TestResult�runr�	successes�len�failures)rr�results   r�_testRunzRunnersTests._testRun%sM���$�$�&��
�	�	�&������F�,�,�-�����C����0�1r�countc�t�tj�jt�}|j	|�y)zL
        Trial can correctly run doctests with its xUnit test APIs.
        N�rrr
rr()rr)rs   r�test_expectedResultsz!RunnersTests.test_expectedResults.s)���!�!�#�0�0��=���
�
�e�rc��tj�jt�}|j	|�|j	|�y)z9
        Doctests should be runnable repeatably.
        Nr+)rrs  r�test_repeatablezRunnersTests.test_repeatable5s5���!�!�#�0�0��=���
�
�e���
�
�e�r)r
N)�)�__name__�
__module__�__qualname__�__doc__rr�pyunit�	TestSuiter(�intr,r.�rrr	r	
sC���	A�4�2�f�.�.�2�4�2��#��d��rr	)r3rr4�
twisted.trialrrr�twisted.trial.testr�SynchronousTestCaser	r7rr�<module>r;s*����<�<�*�.�8�/�/�.r

Zerion Mini Shell 1.0