Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Upload File : |
o �b3 � @ sJ d Z ddlmZ ddlmZ ddlmZ ddlmZ G dd� dej �Z dS ) z% Tests for L{twisted.internet.main}. � )�ReactorAlreadyInstalledError)�installReactor)� NoReactor)�unittestc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �InstallReactorTestsz& Tests for L{installReactor}. c C sR t � � t� }t|� ddlm} | �||� W d � dS 1 s"w Y dS )zN L{installReactor} installs a new reactor if none is present. r )�reactorN)r �objectr �twisted.internetr �assertIs)�self� newReactorr � r �A/usr/lib/python3/dist-packages/twisted/internet/test/test_main.py�test_installReactor s "�z'InstallReactorTests.test_installReactorc C sF t � � tt� � | �ttt� � W d � dS 1 sw Y dS )zv If a reactor is already installed, L{installReactor} raises L{ReactorAlreadyInstalledError}. N)r r r �assertRaisesr �r r r r �test_alreadyInstalled s "�z)InstallReactorTests.test_alreadyInstalledc C s | � ttt�� dS )zo For backwards compatibility, L{ReactorAlreadyInstalledError} is an L{AssertionError}. N)� assertTrue� issubclassr �AssertionErrorr r r r �test_errorIsAnAssertionError( s z0InstallReactorTests.test_errorIsAnAssertionErrorN)�__name__� __module__�__qualname__�__doc__r r r r r r r r s r N)r �twisted.internet.errorr �twisted.internet.mainr �#twisted.internet.test.modulehelpersr � twisted.trialr �SynchronousTestCaser r r r r �<module> s