a
    )(b@                     @   s@   d Z ddlmZmZ ddlmZ ddlmZ G dd deZdS )	z,
Test cases for L{twisted.logger._capture}.
    )LoggerLogLevel)TestCase   )capturedLogsc                   @   s$   e Zd ZdZe ZddddZdS )LogCaptureTestsz'
    Tests for L{LogCaptureTests}.
    N)returnc                 C   s   t  }t 0}| jjd|d | jjd|d W d   n1 sB0    Y  | t|dk | |d d d | |d d tj | |d d	 | | |d
 d d | |d
 d tj | |d
 d	 | dS )z<
        Events logged within context are captured.
        zCapture this, please)foozCapture this too, pleaseNr   r   Z
log_formatZ	log_levelr	      )	objectr   logdebuginfoZ
assertTruelenZassertEqualr   )selfr	   Zcaptured r   ?lib/python3.9/site-packages/twisted/logger/test/test_capture.pytest_capture   s    .zLogCaptureTests.test_capture)__name__
__module____qualname____doc__r   r   r   r   r   r   r   r      s   r   N)	r   Ztwisted.loggerr   r   Ztwisted.trial.unittestr   Z_capturer   r   r   r   r   r   <module>   s   