HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/test_main.cpython-38.pyc
U


W[��@sZdZddlmZmZddlmZddlmZddlm	Z	ddl
mZGdd�dej�Z
d	S)
z%
Tests for L{twisted.internet.main}.
�)�division�absolute_import)�unittest)�ReactorAlreadyInstalledError)�installReactor)�	NoReactorc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�InstallReactorTestsz&
    Tests for L{installReactor}.
    c	Cs<t��,t�}t|�ddlm}|�||�W5QRXdS)zN
        L{installReactor} installs a new reactor if none is present.
        r)�reactorN)r�objectrZtwisted.internetr	ZassertIs)�selfZ
newReactorr	�r�A/usr/lib/python3/dist-packages/twisted/internet/test/test_main.py�test_installReactors
z'InstallReactorTests.test_installReactorc	Cs0t�� tt��|�ttt��W5QRXdS)zv
        If a reactor is already installed, L{installReactor} raises
        L{ReactorAlreadyInstalledError}.
        N)rrr
ZassertRaisesr�rrrr
�test_alreadyInstalled!s

�z)InstallReactorTests.test_alreadyInstalledcCs|�ttt��dS)zo
        For backwards compatibility, L{ReactorAlreadyInstalledError} is an
        L{AssertionError}.
        N)Z
assertTrue�
issubclassr�AssertionErrorrrrr
�test_errorIsAnAssertionError,s�z0InstallReactorTests.test_errorIsAnAssertionErrorN)�__name__�
__module__�__qualname__�__doc__rrrrrrr
rsrN)rZ
__future__rrZ
twisted.trialrZtwisted.internet.errorrZtwisted.internet.mainrZ#twisted.internet.test.modulehelpersrZSynchronousTestCaserrrrr
�<module>s