%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/test/__pycache__/test_monkey.cpython-312.pyc |
� Ϫ�f� � �v � d Z ddlmZ ddlmZ ddlmZ ddlmZ G d� d� Z G d� d ej � Zy )z% Tests for L{twisted.python.monkey}. � )�annotations)�NoReturn)� MonkeyPatcher)�unittestc � � e Zd Zdd�Zy)�TestObjc �. � d| _ d| _ d| _ y )Nz foo valuez bar valuez baz value)�foo�bar�baz��selfs �:/usr/lib/python3/dist-packages/twisted/test/test_monkey.py�__init__zTestObj.__init__ s � ���������� N��return�None)�__name__� __module__�__qualname__r � r r r r s � �r r c �x � e Zd ZdZdd�Zdd�Zdd�Zdd�Zdd�Zdd�Z dd�Z dd �Zdd �Zdd�Z dd�Zdd �Zdd�Zy)�MonkeyPatcherTestsz; Tests for L{MonkeyPatcher} monkey-patching class. c �^ � t � | _ t � | _ t � | _ y �N)r � testObject�originalObjectr � monkeyPatcherr s r �setUpzMonkeyPatcherTests.setUp s � �!�)���%�i���*�_��r c � � | j j � | j | j j | j j � | j | j j | j j � | j | j j | j j � y)zL A monkey patcher without patches shouldn't change a thing. N)r �patch�assertEqualr r r r r r s r � test_emptyzMonkeyPatcherTests.test_empty s� � � ��� � �"� ����,�,�0�0�$�/�/�2E�2E�F�����,�,�0�0�$�/�/�2E�2E�F�����,�,�0�0�$�/�/�2E�2E�Fr c �| � t | j ddf| j ddf� }|j � | j d| j j � | j d| j j � | j | j j | j j � y)z} Constructing a L{MonkeyPatcher} with patches should add all of the given patches to the patch list. r �hahar �heheN)r r r"