관리-도구
편집 파일: test_logcapture.cpython-311.pyc
� �܋f�L � �4 � d dl mZmZmZ d dlmZ d dlmZ d dlm Z d dl mZ d dlm Z d dlmZmZmZmZ e� � Z ed� � Z ed � � Z ed � � Z G d� de� � Z G d � de� � Z G d� de� � Z G d� de� � ZdS )� )� getLogger�ERROR�Filter)�dedent)�TestCase)�catch_warnings)�ShouldAssert)�Mock)�Replacer� LogCapture�compare�Replace�one�two� one.childc � � e Zd Zd� ZdS )�DummyFilterc � � dS )NT� )�self�_s �s/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/testfixtures/tests/test_logcapture.py�filterzDummyFilter.filter s � ��t� N)�__name__� __module__�__qualname__r r r r r r s# � � � � � �� � � � r r c � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zd� Zd� ZdS )�TestLogCapturec � � t � d� � t � � }t � d� � |� � � t � d� � t |� � dk sJ �d S �N�before�during�after�root INFO during)�root�infor � uninstall�str�r �ls r �test_simplezTestLogCapture.test_simple sl � �� � �(�����L�L��� � �(���� ��� � � �� � �'�����1�v�v�.�.�.�.�.�.�.r c � � t t �� � }t � d� � |� � � t d� � 5 |� � � d d d � � d S # 1 swxY w Y d S )N��ensure_checks_abover# �8Not asserted ERROR log(s): [('root', 'ERROR', 'during')])r r r&