Ë
    oj  ã                   ó^   — d Z ddlZddlmZmZmZmZ ddlmZ  G d„ dej                  «      Z
y)z!
Test Twisted's doctest support.
é    N)ÚitrialÚreporterÚrunnerÚunittest)Úmockdoctestc                   ó^   — e Zd ZdZdd„Zdd„Zdej                  ddfd„Zdde	ddfd	„Z
dd
„Zy)ÚRunnersTestsz.
    Tests for Twisted's doctest support.
    ÚreturnNc                 óâ   — t        j                  «       }|j                  t        «      }d}|j                  D ]5  }| j                  |t        j                  |«      j                  «       «       Œ7 y)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_idzRunnersTests.test_id   s^   € ô
 ×"Ñ"Ó$ˆØ×#Ñ#¤KÓ0ˆØ;ˆØ—L‘Lò 	AˆDØ�M‰M˜(¤F×$4Ñ$4°TÓ$:×$=Ñ$=Ó$?Õ@ñ	Aó    c                 ó–   — t        j                  «       }|j                  t        «      }| j	                  d|j                  «       «       y)zP
        L{loadDoctests} loads all of the doctests in the given module.
        é   N)r   r   r   r   ÚassertEqualÚcountTestCases)r   r   r   s      r   Útest_basicTrialIntegrationz'RunnersTests.test_basicTrialIntegration   s;   € ô ×"Ñ"Ó$ˆØ×#Ñ#¤KÓ0ˆØ×Ñ˜˜E×0Ñ0Ó2Õ3r   r   c                 óÐ   — t        j                  «       }|j                  |«       | j                  d|j                  «       | j                  dt        |j                  «      «       y)z4
        Run C{suite} and check the result.
        é   é   N)r   Ú
TestResultÚrunr   Ú	successesÚlenÚfailures)r   r   Úresults      r   Ú_testRunzRunnersTests._testRun%   sM   € ô ×$Ñ$Ó&ˆØ�	‰	�&ÔØ×Ñ˜˜F×,Ñ,Ô-Ø×Ñ˜œC §¡Ó0Õ1r   Úcountc                 ót   — t        j                  «       j                  t        «      }| j	                  |«       y)zL
        Trial can correctly run doctests with its xUnit test APIs.
        N©r   r   r   r   r(   )r   r)   r   s      r   Útest_expectedResultsz!RunnersTests.test_expectedResults.   s)   € ô ×!Ñ!Ó#×0Ñ0´Ó=ˆØ�‰�eÕr   c                 ó–   — t        j                  «       j                  t        «      }| j	                  |«       | j	                  |«       y)z9
        Doctests should be runnable repeatably.
        Nr+   )r   r   s     r   Útest_repeatablezRunnersTests.test_repeatable5   s5   € ô ×!Ñ!Ó#×0Ñ0´Ó=ˆØ�‰�eÔØ�‰�eÕr   )r
   N)é   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚpyunitÚ	TestSuiter(   Úintr,   r.   © r   r   r	   r	      sC   „ ñó	Aó4ð2˜f×.Ñ.ð 2°4ó 2ñ¨#ð °dó ôr   r	   )r3   r   r4   Útwisted.trialr   r   r   Útwisted.trial.testr   ÚSynchronousTestCaser	   r7   r   r   ú<module>r;      s*   ðñó ç <Ó <Ý *ô.�8×/Ñ/õ .r   