관리-도구
편집 파일: fake_pathlib_test.cpython-311.pyc
� �܋f�� � �� � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddlm Z ddl mZmZm Z mZ ddlmZ ddlmZmZ ddlmZ ej d k Z G d � de j e� � Z G d� d e� � Z G d� de� � Z ej e d� � 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� d e#� � Z$ G d!� d"e� � Z% G d#� d$e%� � Z& G d%� d&ej � � Z' G d'� d(e j � � Z(e)d)k r ej* d*�+� � dS dS ),z� Unittests for fake_pathlib. As most of fake_pathlib is a wrapper around fake_filesystem methods, the tests are there mostly to ensure basic functionality. Note that many of the tests are directly taken from examples in the python docs. � N)� namedtuple)�mock)�fake_pathlib�fake_filesystem�fake_filesystem_unittest�fake_os)�OSType)�IS_PYPY�is_root)�RealFsTestMixin�win32c �8 � e Zd Zej dk Zdd�Zd� Zd� ZdS )�RealPathlibTestCaser �runTestc �n � t j � | |� � t j | � � d S �N)r �TestCase�__init__r )�self� methodNames �q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyfakefs/tests/fake_pathlib_test.pyr zRealPathlibTestCase.__init__* s2 � � �)�2�2�4��D�D�D�� ��&�&�&�&�&� c �N � t j | � � d | _ t | _ | � � � s4| � � � | j | _ | � � � t | _ t j | _ t | _ t | _ d S r ) r �setUp� filesystem�os�real_os�use_real_fs� setUpPyfakefs�fs�create_basepath�pathlib�Path�path�open�r s r r zRealPathlibTestCase.setUp. s� � ���d�#�#�#����������!�!� #���� � � �"�g�D�O�� � �"�"�"�����L�� ������ � � r c � � dS )NF� r&