o
    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ZdS )LogCaptureTestsz'
    Tests for L{LogCaptureTests}.
    returnNc                 C   s   t  }t }| jjd|d | jjd|d W d   n1 s!w   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   
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   zLogCaptureTests.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
   