%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/test/__pycache__/test_modules.cpython-312.pyc |
� Ϫ�f^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&