HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/twisted/logger/test/__pycache__/test_capture.cpython-310.pyc
o

�b@�@s@dZddlmZmZddlmZddlmZGdd�de�ZdS)	z,
Test cases for L{twisted.logger._capture}.
�)�Logger�LogLevel)�TestCase�)�capturedLogsc@s eZdZdZe�Zddd�ZdS)�LogCaptureTestsz'
    Tests for L{LogCaptureTests}.
    �returnNcCs�t�}t��}|jjd|d�|jjd|d�Wd�n1s!wY|�t|�dk�|�|ddd�|�|ddtj�|�|dd	|�|�|d
dd�|�|d
dtj�|�|d
d	|�dS)z<
        Events logged within context are captured.
        zCapture this, please)�foozCapture this too, pleaseNrr�
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_captures�zLogCaptureTests.test_capture)rN)�__name__�
__module__�__qualname__�__doc__rrrrrrrr
srN)	r�twisted.loggerrr�twisted.trial.unittestr�_capturerrrrrr�<module>s