관리-도구
편집 파일: test_sybil.cpython-311.pyc
� �܋f� � �v � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z m ZmZ d dl mZmZ G d� de� � Zd S ) � )�dedent)�TestCase)�Mock)�Document)�compare� Comparison� TempDirectory)� FileParser� FileBlockc �J � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � ZdS )�TestFileParserc � � t t |� � d�� � }t t d� t d� � |� � D � � � � |�� � d S )Nz /dev/null)�pathc 3 �$ K � | ]}|j V � �d S )N)�parsed)�.0�rs �n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/testfixtures/tests/test_sybil.py� <genexpr>z0TestFileParser.check_document.<locals>.<genexpr> s$ � � � �7�7�a���7�7�7�7�7�7� �td��expected)r r r �listr )�self�textr �ds r �check_documentzTestFileParser.check_document sk � ��V�D�\�\��4�4�4����7�7�#3�:�d�#3�#3�A�#6�#6�7�7�7�7�7�� � � � � � r c � � | � dt t ddd�� � t t ddd�� � g� � � d S ) Nas .. topic:: file.txt :class: write-file line 1 line 2 line 3 .. topic:: file2.txt :class: read-file line 4 line 5 line 6 �file.txt�line 1 line 2 line 3 �write�r �content�actionz file2.txtzline 4 line 5 line 6 �read�r r �r �Cr �r s r �test_multiple_filesz"TestFileParser.test_multiple_files sq � �����* �)�!�6� �"� "� "� �)�"�6��!� !� !� �+ � � � � � r c �b � | � dt t ddd�� � g�� � d S )Nz� .. topic:: file.txt :class: write-file :: line 1 line 2 line 3 r r! r"