Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/zope/component/tests/__pycache__/ |
Upload File : |
o ,�W/ � @ sp d Z ddlZG dd� dej�ZG dd� dej�ZG dd� dej�ZG d d � d ej�ZG dd� de�Zd d� Z dS )zTests for z.c.registry � Nc @ �, e Zd ZddlmZmZ dd� Zdd� ZdS )�%Test_dispatchUtilityRegistrationEventr ��setUp�tearDownc O � ddl m} ||i |��S )Nr )� dispatchUtilityRegistrationEvent)�zope.component.registryr )�self�args�kwr � r �D/usr/lib/python3/dist-packages/zope/component/tests/test_registry.py�_callFUT � z.Test_dispatchUtilityRegistrationEvent._callFUTc s� ddl m} G dd� dt�}t� }g � � fdd�}t||d�� | �|� |� W d � n1 s1w Y | �� |j|fg� d S )Nr ��registryc @ s e Zd Ze� ZdS )zDTest_dispatchUtilityRegistrationEvent.test_it.<locals>._RegistrationN)�__name__� __module__�__qualname__�object� componentr r r r � _Registration s r c � � � | � d S �N��append�r ��_handledr r �_handle! � z>Test_dispatchUtilityRegistrationEvent.test_it.<locals>._handle��handle)�zope.componentr r �_Monkeyr �assertEqualr )r r r �_EVENTr r r r �test_it s �z-Test_dispatchUtilityRegistrationEvent.test_itN�r r r �zope.component.testingr r r r( r r r r r � r c @ r )�%Test_dispatchAdapterRegistrationEventr r c O r )Nr )� dispatchAdapterRegistrationEvent)r r- )r r r r- r r r r , r z.Test_dispatchAdapterRegistrationEvent._callFUTc � ddl m} G dd� dt�}|� }t� }g � � fdd�}t||d�� | �||� W d � n1 s3w Y | �� |j|fg� d S )Nr r c @ � e Zd Zdd� ZdS )zDTest_dispatchAdapterRegistrationEvent.test_it.<locals>._Registrationc _ � d S r r �r r r r r r �factory3 � zLTest_dispatchAdapterRegistrationEvent.test_it.<locals>._Registration.factoryN�r r r r2 r r r r r 2 � r c r r r r r r r r 8 r! z>Test_dispatchAdapterRegistrationEvent.test_it.<locals>._handler"