0x1949 Team - FAZEMRX - MANAGER
Edit File: test_plugin.cpython-310.pyc
o �b(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 @ � 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 �:/usr/lib/python3/dist-packages/twisted/test/test_plugin.pyr � r c @ r )�ITestPlugin2z See L{ITestPlugin}. Nr r r r r r # r r c @ s� e Zd ZdZdd� Zdd� Zd!dd�Zd d � Zdefdd �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 �, | j tjdd�<