관리-도구
편집 파일: fake_stat_time_test.cpython-311.pyc
� �܋fW � �� � d Z ddlZddlZddlmZ ddlmZ edd� � 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 G d� de� � Z G d� d e� � Zed!k r ej � � dS dS )"z&Unit tests for file timestamp updates.� N)� namedtuple)�RealFsTestCase�FileTimezst_ctime, st_atime, st_mtimec � � � e Zd Z� fd�Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z� xZS )�FakeStatTestBasec �� �� t � � � � � | � � � | � d� � | _ | j rdnd| _ d| _ d S )N� some_fileg�������?g{�G�z�?� )�super�setUp�check_linux_and_windows� make_path� file_path�is_macos� sleep_time�mode��self� __class__s ��s/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyfakefs/tests/fake_stat_time_test.pyr zFakeStatTestBase.setUp sX �� � ��� � ���� �$�$�&�&�&�����4�4���!%��8�#�#�D����� � � � c � � | j � |� � }| � � � rt j | j � � nt j � � t |j |j |j �� � S )N)�st_ctime�st_atime�st_mtime) �os�stat�use_real_fs�time�sleepr r r r r )r �pathr s r � stat_timezFakeStatTestBase.stat_time# sq � ��w�|�|�D�!�!������� ��J�t��'�'�'�'� �I�K�K�K���]��]��]� � � � r c �p � | j r| � ||� � d S | � ||� � d S �N)� is_windows_fs�assertLessEqual� assertLess�r �time1�time2s r �assertLessExceptWindowsz(FakeStatTestBase.assertLessExceptWindows1 sC � ��� *�� � ���.�.�.�.�.��O�O�E�5�)�)�)�)�)r c �p � | j r| � ||� � d S | � ||� � d S r$ )r% r'