§
    Ètºf  ã                   ó\   — 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
dS )z!
Test Twisted's doctest support.
é    N)ÚitrialÚreporterÚrunnerÚunittest)Úmockdoctestc                   óV   — 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dS )ÚRunnersTestsz.
    Tests for Twisted's doctest support.
    ÚreturnNc                 óì   — t          j        ¦   «         }|                     t          ¦  «        }d}|j        D ]<}|                      |t          j        |¦  «                             ¦   «         ¦  «         Œ=dS )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        ú^/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/trial/test/test_doctest.pyÚtest_idzRunnersTests.test_id   sw   € õ
 Ô"Ñ$Ô$ˆØ×#Ò#¥KÑ0Ô0ˆØ;ˆØ”Lð 	Að 	AˆDØ�MŠM˜(¥FÔ$4°TÑ$:Ô$:×$=Ò$=Ñ$?Ô$?Ñ@Ô@Ð@Ð@ð	Að 	Aó    c                 ó°   — t          j        ¦   «         }|                     t          ¦  «        }|                      d|                     ¦   «         ¦  «         dS )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   sM   € õ Ô"Ñ$Ô$ˆØ×#Ò#¥KÑ0Ô0ˆØ×Ò˜˜E×0Ò0Ñ2Ô2Ñ3Ô3Ð3Ð3Ð3r   r   c                 óÜ   — t          j        ¦   «         }|                     |¦  «         |                      d|j        ¦  «         |                      dt          |j        ¦  «        ¦  «         dS )z4
        Run C{suite} and check the result.
        é   é   N)r   Ú
TestResultÚrunr   Ú	successesÚlenÚfailures)r   r   Úresults      r   Ú_testRunzRunnersTests._testRun%   sc   € õ Ô$Ñ&Ô&ˆØ�	Š	�&ÑÔÐØ×Ò˜˜FÔ,Ñ-Ô-Ð-Ø×Ò˜�C ¤Ñ0Ô0Ñ1Ô1Ð1Ð1Ð1r   é   Úcountc                 ó†   — t          j        ¦   «                              t          ¦  «        }|                      |¦  «         dS )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.   s8   € õ Ô!Ñ#Ô#×0Ò0µÑ=Ô=ˆØ�Š�eÑÔÐÐÐr   c                 ó°   — t          j        ¦   «                              t          ¦  «        }|                      |¦  «         |                      |¦  «         dS )z9
        Doctests should be runnable repeatably.
        Nr,   )r   r   s     r   Útest_repeatablezRunnersTests.test_repeatable5   sJ   € õ Ô!Ñ#Ô#×0Ò0µÑ=Ô=ˆØ�Š�eÑÔÐØ�Š�eÑÔÐÐÐr   )r
   N)r)   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚpyunitÚ	TestSuiter(   Úintr-   r/   © r   r   r	   r	      sª   € € € € € ðð ð	Að 	Að 	Að 	Að4ð 4ð 4ð 4ð2˜fÔ.ð 2°4ð 2ð 2ð 2ð 2ðð ¨#ð °dð ð ð ð ðð ð ð ð ð r   r	   )r3   r   r4   Útwisted.trialr   r   r   Útwisted.trial.testr   ÚSynchronousTestCaser	   r7   r   r   ú<module>r;      sŠ   ððð ð Ð Ð Ð à <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ð <Ø *Ð *Ð *Ð *Ð *Ð *ð.ð .ð .ð .ð .�8Ô/ñ .ô .ð .ð .ð .r   