+
    DfjK                     d    R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt  ! R R]P                  4      t
R# )z%
Tests for L{twisted.internet.main}.
)ReactorAlreadyInstalledError)installReactor)	NoReactor)unittestc                   Z   a  ] tR t^t o RtV 3R lR ltV 3R lR ltV 3R lR ltRtV t	R	# )
InstallReactorTestsz
Tests for L{installReactor}.
c                   < V ^8  d   QhRR/#    returnN )format__classdict__s   "A/usr/lib/python3/dist-packages/twisted/internet/test/test_main.py__annotate__ InstallReactorTests.__annotate__   s     	/ 	/T 	/    c                    \        4       ;_uu_ 4        \        4       p\        V4       ^ RIHp V P                  W4       RRR4       R#   + '       g   i     R# ; i)z>
L{installReactor} installs a new reactor if none is present.
)reactorN)r   objectr   twisted.internetr   assertIs)self
newReactorr   s   &  r   test_installReactor'InstallReactorTests.test_installReactor   s5     [[J:&0MM*. [[[s   -A

A	c                   < V ^8  d   QhRR/# r	   r   )r   r   s   "r   r   r      s     V Vt Vr   c                    \        4       ;_uu_ 4        \        \        4       4       V P                  \        \        \        4       4       RRR4       R#   + '       g   i     R# ; i)z^
If a reactor is already installed, L{installReactor} raises
L{ReactorAlreadyInstalledError}.
N)r   r   r   assertRaisesr   r   s   &r   test_alreadyInstalled)InstallReactorTests.test_alreadyInstalled   s6    
 [[68$:NFHU [[[s   7AA%	c                   < V ^8  d   QhRR/# r	   r   )r   r   s   "r   r   r   (   s     R Rd Rr   c                L    V P                  \        \        \        4      4       R# )zW
For backwards compatibility, L{ReactorAlreadyInstalledError} is an
L{AssertionError}.
N)
assertTrue
issubclassr   AssertionErrorr   s   &r   test_errorIsAnAssertionError0InstallReactorTests.test_errorIsAnAssertionError(   s    
 	
#?PQr   r   N)
__name__
__module____qualname____firstlineno____doc__r   r    r'   __static_attributes____classdictcell__)r   s   @r   r   r      s,     	/ 	/V VR Rr   r   N)r-   twisted.internet.errorr   twisted.internet.mainr   #twisted.internet.test.modulehelpersr   twisted.trialr   SynchronousTestCaser   r   r   r   <module>r5      s-   
 @ 0 9 "R(66 Rr   