관리-도구
편집 파일: fake_filesystem_shutil_test.cpython-311.pyc
� �܋f�V � �J � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl mZmZm Z mZ ddlmZ ej dk Z G d� d e j e� � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de� � Zedk r ej � � dS dS )z�Tests for `fake_filesystem_shutil` if used in `fake_filesystem_unittest.TestCase`. Note that almost all of the functionality is delegated to the real `shutil` and works correctly with the fake filesystem because of the faked `os` module. � N)�Path)�fake_filesystem_unittest)�get_uid�set_uid�is_root�IS_PYPY)�RealFsTestMixin�win32c �8 � e Zd Zdd�Zd� Zd� Zed� � � ZdS )�RealFsTestCase�runTestc �n � t j � | |� � t j | � � d S �N)r �TestCase�__init__r )�self� methodNames �{/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyfakefs/tests/fake_filesystem_shutil_test.pyr zRealFsTestCase.__init__# s2 � � �)�2�2�4��D�D�D�� ��&�&�&�&�&� c � � t j | � � t j � � | _ t � � | _ t d� � | � � � sn| � � � | j | _ t | _ t | _ | � � � | j � d| j � � d S d S )N�� )r �setUp�os�getcwd�cwdr �uidr �use_real_fs� setUpPyfakefs�fs� filesystem�open�create_basepath�set_disk_usage� base_path�r s r r zRealFsTestCase.setUp'