File: //usr/lib/python3/dist-packages/twisted/logger/test/__pycache__/test_capture.cpython-310.pyc
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