🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 16:57:53 | PHP 8.1.34
📂
/ (Root)
/
usr
/
lib
/
python3.9
/
site-packages
/
certbot
/
_internal
/
tests
/
plugins
/
__pycache__
📍 /usr/lib/python3.9/site-packages/certbot/_internal/tests/plugins/__pycache__
🔄 Refresh
✏️
Editing: storage_test.cpython-39.opt-1.pyc
Read Only
a }|�gE � @ s� d Z ddlZddlZddlmZ ddlZddlmZ ddlm Z ddlm Z ddlmZ G dd � d e j�Zed kr�e�e�ejdd� eg �� dS )z/Tests for certbot.plugins.storage.PluginStorage� N)�mock)�errors)� filesystem)�os)�utilc s` e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Z� Z S )�PluginStorageTestz.Test for certbot.plugins.storage.PluginStoragec s` t � �� tj| _t�| jj� t � d��" | j| jdd�| _W d � n1 sR0 Y d S )N�certbot.reverter.util� mockplugin)�config�name)�super�setUp� test_utilZDummyInstaller� plugin_clsr �mkdirr � config_dirr �patch�plugin��self�� __class__� �P/usr/lib/python3.9/site-packages/certbot/_internal/tests/plugins/storage_test.pyr s zPluginStorageTest.setUpc C s* t tj�| jjd�d��}|�d� W d � n1 s80 Y t�� }t |_ tj�| jjd�| jj_ t�d|��� tjddd��r t�d��H t�tj�� | jj�� W d � n1 s�0 Y W d � n1 s�0 Y W d � n1 s�0 Y W d � n1 �s0 Y d S ) N�.pluginstorage.json�wZdummyz builtins.openzcertbot.compat.os.path.isfileT)Zreturn_valuer )�openr �path�joinr r �writer � mock_open�IOError�side_effectr �storage�_storagepathr �pytest�raisesr �PluginStorageError�_load)r �fhr r r r �test_load_errors_cant_read s"