관리-도구
편집 파일: fake_filesystem_unittest_test.cpython-311.pyc
� �܋f� � � � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlmZ ddl m Z mZ ddlZddlZddlmZmZ ddlmZ ddlmZmZmZmZ ddlmZ ej d k rdd lmZm Z G d� de � � Z! G d � de � � Z" G d� dej � � Z# G d� de#� � Z$ G d� de#� � Z% G d� dej � � Z& G d� de#� � Z'ddl(Z) G d� de#� � Z* G d� de#� � Z+ G d� dej � � Z, G d� d ej � � Z- G d!� d"ej � � Z. G d#� d$ej � � Z/ G d%� d&� � Z0 G d'� d(ej � � Z1 G d)� d*e j � � Z2 G d+� d,ej � � Z3 G d-� d.ej � � Z4 G d/� d0ej � � Z5 G d1� d2e j � � Z6 G d3� d4ej � � Z7 G d5� d6e j � � Z8 G d7� d8e j ej9 � � Z: G d9� d:ej � � Z;ej d k r G d;� d<ej � � Z< G d=� d>e � � Z= G d?� d@ej � � Z>dA� Z? G dB� dCej � � Z@ G dD� dEej � � ZA e jB ejC dFk dG� � G dH� dIej � � � � ZD e jB ej dJk dK� � G dL� dMej � � � � ZEeFdNk r e jG � � dS dS )OzL Test the :py:class`pyfakefs.fake_filesystem_unittest.TestCase` base class. � N)�Path)�TestCase�mock)�fake_filesystem_unittest�fake_filesystem)�OSType)�Patcher�Pause�patchfs� PatchMode)�module_with_attributes�� � )� copy_tree�remove_treec �* � e Zd Zd� Zed� � � ZdS )�TestPatcherc �. � t � � 5 }|j � dd�� � t d� � 5 }|� � � }d d d � � n# 1 swxY w Y | � d|� � d d d � � d S # 1 swxY w Y d S �N�/foo/bar�test��contents)r �fs�create_file�open�read�assertEqual)�self�patcher�fr s �}/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyfakefs/tests/fake_filesystem_unittest_test.py�test_context_managerz TestPatcher.test_context_manager4 s � � �Y�Y� /�'��J�"�"�:��"�?�?�?��j�!�!� $�Q��6�6�8�8�� $� $� $� $� $� $� $� $� $� $� $���� $� $� $� $����V�X�.�.�.� /� /� /� /� /� /� /� /� /� /� /� /���� /� /� /� /� /� /s4 �,B �A�B �A � B �#A �$B � B�Bc �� � |� dd�� � t d� � 5 }|� � � }d d d � � n# 1 swxY w Y | � d|� � d S r )r r r r )r �fake_fsr"