| Server IP : 159.223.102.202 / Your IP : 216.73.216.195 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
�
M��e^G � �h � d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m
Z
ddlmZm
Z
ddlmZ ddlZddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ G d� de� Z G d� dee� Z G d� de� Z G d� de� Z! G d� de!� Z" G d� de!� Z# G d� de� Z$g d�Z%y)zV
Tests for twisted.python.modules, abstract access to imported or importable
objects.
� )�annotationsN)�PathEntryFinder)�
ModuleType)�Any� Generator)�Protocol)�modules)�
networkString)�FilePath)�namedAny)�TwistedModulesMixin)�zipit)�TestCasec � � e Zd Z dd�Zy)�_SupportsWalkModulesc � � y �N� )�self�importPackagess �;/usr/lib/python3/dist-packages/twisted/test/test_modules.py�walkModulesz _SupportsWalkModules.walkModules s � � � N)r �bool�returnz+Generator[modules.PythonModule, None, None])�__name__�
__module__�__qualname__r r r r r r s � ��"�� 4�r r c �, � e Zd ZdZedf dd�Zy)�TwistedModulesTestCasez/
Base class for L{modules} test cases.
Fc � � |j |�� D ] }|j |k( s�|c S | j d|�d�� y)z�
You don't ever actually want to do this, so it's not in the public
API, but sometimes we want to compare the result of an iterative call
with a lookup call and make sure they're the same for test purposes.
�r zUnable to find module z through iteration.N)r �name�fail)r �modname�wherer �modinfos r �findByIterationz&TwistedModulesTestCase.findByIteration* sK � � �(�(��(�G� �G��|�|�w�&��� �
� � �*�7�+�5H�I�Jr N)r% �strr&