Ë
    ojK  ã                   ób   — d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d„ dej                  «      Z
y)	z%
Tests for L{twisted.internet.main}.
é    )ÚReactorAlreadyInstalledError)ÚinstallReactor)Ú	NoReactor)Úunittestc                   ó(   — e Zd ZdZdd„Zdd„Zdd„Zy)ÚInstallReactorTestsz&
    Tests for L{installReactor}.
    Nc                 óœ   — t        «       5  t        «       }t        |«       ddlm} | j                  ||«       ddd«       y# 1 sw Y   yxY w)zN
        L{installReactor} installs a new reactor if none is present.
        r   )ÚreactorN)r   Úobjectr   Útwisted.internetr
   ÚassertIs)ÚselfÚ
newReactorr
   s      úA/usr/lib/python3/dist-packages/twisted/internet/test/test_main.pyÚtest_installReactorz'InstallReactorTests.test_installReactor   s>   € ô ‹[ñ 	/Ü›ˆJÜ˜:Ô&Ý0à�M‰M˜* gÔ.÷	/÷ 	/ñ 	/ús   ‹.AÁAc                 ó®   — t        «       5  t        t        «       «       | j                  t        t        t        «       «       ddd«       y# 1 sw Y   yxY w)zv
        If a reactor is already installed, L{installReactor} raises
        L{ReactorAlreadyInstalledError}.
        N)r   r   r   ÚassertRaisesr   ©r   s    r   Útest_alreadyInstalledz)InstallReactorTests.test_alreadyInstalled   sA   € ô
 ‹[ñ 	VÜœ6›8Ô$Ø×ÑÔ:¼NÌFËHÔU÷	V÷ 	Vñ 	Vús   ‹7AÁAc                 óJ   — | j                  t        t        t        «      «       y)zo
        For backwards compatibility, L{ReactorAlreadyInstalledError} is an
        L{AssertionError}.
        N)Ú
assertTrueÚ
issubclassr   ÚAssertionErrorr   s    r   Útest_errorIsAnAssertionErrorz0InstallReactorTests.test_errorIsAnAssertionError(   s   € ð
 	�‰œ
Ô#?ÄÓPÕQó    )ÚreturnN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r   r      s   „ ñó	/óVôRr   r   N)r    Útwisted.internet.errorr   Útwisted.internet.mainr   Ú#twisted.internet.test.modulehelpersr   Útwisted.trialr   ÚSynchronousTestCaser   r!   r   r   ú<module>r'      s-   ðñõ
 @Ý 0Ý 9Ý "ôR˜(×6Ñ6õ Rr   