Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/test/__pycache__/test_plugin.cpython-39.pyc
Ðазад
a k�h(c � @ s d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl mZ ddlm Z ddlmZ ddlmZ ddlmZmZmZ dd lmZ G d d� de �ZG dd � d e �ZG dd� dej�ZdZdd� Zdd� ZG dd� dej�ZG dd� dej�Z G dd� dej�Z!dS )z" Tests for Twisted plugin system. � N)�invalidate_caches)�Callable)� Interface)�plugin)�FilePath)�addObserver�removeObserver�textFromEventDict)�unittestc @ s e Zd ZdZdS )�ITestPluginzS A plugin for use by the plugin system's unit tests. Do not use this. N��__name__� __module__�__qualname__�__doc__� r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/test/test_plugin.pyr s r c @ s e Zd ZdZdS )�ITestPlugin2z See L{ITestPlugin}. Nr r r r r r # s r c @ s� e Zd ZdZdd� Zdd� Zd!dd�Zd d � Zed�dd �Z e dd� �Z dd� Ze dd� �Ze dd� �Z e dd� �Ze dd� �Ze dd� �Ze dd� �Zdd� Zd S )"�PluginTestsz_ Tests which verify the behavior of the current, active Twisted plugins directory. c C s� t jdd� | _t j�� | _t| �� �| _| j� � | j� d�| _| j� � | j� d��d� tt ��d��| j� d�� d| _t j�d| jj� ddl}|| _dS ) zV Save C{sys.path} and C{sys.modules}, and create a package for tests. N� mypackage�__init__.py� zplugin_basic.pyz testplugin.py� testpluginr )�sys�path�originalPath�modules�copy�savedModulesr �mktemp�root�createDirectory�child�package� setContent�__file__�sibling�copyTo�originalPlugin�insertr �module)�selfr r r r �setUp/ s �zPluginTests.setUpc C s, | j tjdd�<