관리-도구
편집 파일: fake_os_test.cpython-311.pyc
� �܋f2� � � � d Z ddlZddlZddlZddlZddlZddlmZmZm Z m Z ddlmZm Z mZmZ ddlmZmZmZmZ ddlmZmZmZ ddlmZmZ G d� d e� � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de� � Z G d� de� � Z! G d� de� � Z" G d� de"� � Z# G d� de� � Z$ G d� de$� � Z% G d� de� � Z& G d� de� � Z' ej( e d � � G d!� d"e� � � � Z) G d#� d$e)� � Z* G d%� d&e)� � Z+ G d'� d(e+� � Z, ej( ej- d)� � ej( ed*� � G d+� d,e)� � � � � � Z. G d-� d.e.� � Z/ G d/� d0e.� � Z0 G d1� d2e0� � Z1 G d3� d4e� � Z2 G d5� d6e� � Z3 G d7� d8e3� � Z4dS )9z$Unit tests for fake_os.FakeOsModule.� N)� IN_DOCKER�IS_PYPY�get_uid�get_gid)�fake_filesystem�fake_os� fake_open� fake_file)�FakeFileOpen�is_root�set_uid�set_gid)�use_scandir�use_scandir_package�use_builtin_scandir)�TestCase�RealFsTestCasec � � e Zd Zd� Zd� ZdS )�FakeOsModuleTestBasec � � | � |� � | � | j j � |� � � � | j � |� � }| � dt j |j � � � � | � |j t j z � � | � |j t j z � � d S )N� )�create_file� assertTrue�os�path�exists�stat�assertEqual�S_IMODE�st_mode�S_IFREG�assertFalse�S_IFDIR��selfr �sts �l/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyfakefs/tests/fake_os_test.py�createTestFilez#FakeOsModuleTestBase.createTestFile+ s� � ��������������+�+�D�1�1�2�2�2� �W�\�\�$� � ��������R�Z� 8� 8�9�9�9����� �T�\�1�2�2�2������d�l�2�3�3�3�3�3� c � � | � |� � | � | j j � |� � � � | j � |� � }| � dt j |j � � � � | � |j t j z � � | � |j t j z � � d S )N� )� create_dirr r r r r r r r r"