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/logger/test/__pycache__/ |
Upload File : |
o �b@ � @ s@ d Z ddlmZmZ ddlmZ ddlmZ G dd� de�ZdS ) z, Test cases for L{twisted.logger._capture}. � )�Logger�LogLevel)�TestCase� )�capturedLogsc @ s e Zd ZdZe� Zddd�ZdS )�LogCaptureTestsz' Tests for L{LogCaptureTests}. �returnNc C s� t � }t� �}| jjd|d� | jjd|d� W d � n1 s!w Y | �t|�dk� | �|d d d� | �|d d tj� | �|d d |� | �|d d d� | �|d d tj� | �|d d |� dS )z< Events logged within context are captured. zCapture this, please)�foozCapture this too, pleaseNr r � log_format� log_levelr � ) �objectr �log�debug�info� assertTrue�len�assertEqualr )�selfr �captured� r �B/usr/lib/python3/dist-packages/twisted/logger/test/test_capture.py�test_capture s �zLogCaptureTests.test_capture)r N)�__name__� __module__�__qualname__�__doc__r r r r r r r r s r N) r �twisted.loggerr r �twisted.trial.unittestr �_capturer r r r r r �<module> s