/usr/lib/python3.9/site-packages/certbot/_internal/tests/compat/__pycache__
a }|�g�j � @ s4 d Z ddlZddlZddlZddlZddlmZ ddlZddlmZ ddl m Z ddlmZ ddlm Z ddlm mZ ddlmZ z ddlZddlZddlZd ZW n ey� d ZY n0 dZdZd Zejedd�G dd� de��ZG dd� de�ZG dd� de�Zejedd�G dd� de��ZG dd� dej�Zejedd�G dd� dej��Z G dd� dej�Z!G dd � d ej�Z"G d!d"� d"ej�Z#G d#d$� d$ej�Z$G d%d&� d&ej�Z%G d'd(� d(ej�Z&G d)d*� d*ej'�Z(ej)d+d,� �Z*d-d.� Z+d/d0� Z,d1d2� Z-d8d4d5�Z.e/d6k�r0e�0e�1ej2d7d� e3g �� dS )9z#Tests for certbot.compat.filesystem� N)�mock)�util)�lock)� filesystem)�os)�TempDirTestCaseFTzS-1-1-0zS-1-5-18zS-1-5-32-544z"Tests specific to Windows security��reasonc sp e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dd� Z� ZS )�WindowsChmodTestsz:Unit tests for Windows chmod function in filesystem modulec s t � �� t| j�| _d S �N��super�setUp� _create_probe�tempdir� probe_path��self�� __class__� �R/usr/lib/python3.9/site-packages/certbot/_internal/tests/compat/filesystem_test.pyr # s zWindowsChmodTests.setUpc C sb t j�| jd�}t �| j|� t| j��� }t|��� }t� |d� t| j��� }t|��� }d S )N�link� ) r �path�joinr �symlinkr �_get_security_dacl�GetSecurityDescriptorDaclr �chmod)r � link_path�ref_dacl_probeZ ref_dacl_link�cur_dacl_probeZ cur_dacl_linkr r r �test_symlink_resolution'