Your IP : 216.73.216.172


Current Path : /lib/python3/dist-packages/zope/component/tests/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/zope/component/tests/__pycache__/examples.cpython-38.pyc

U

,�W��@s8dZddlZddlmZddlmZddlmZddlmZddl	m
Z
dd	�ZGd
d�de�ZGdd
�d
e�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�Zdd�ZGdd�de�Zee
�Gd d!�d!e��Zee
e�Gd"d#�d#e��Zee
�d$d%��Zd&d'�Zee
�d(d)��Zee
�d*d+��ZGd,d-�d-�Zdd.lm Z e ed/�Z!e!e_"d0d1�Z#ee
�Gd2d3�d3e��Z$e$�Z%ee�Gd4d5�d5e��Z&ee
�Gd6d7�d7e��Z'ee�Gd8d9�d9e��Z(e(d:�Z)ee�Gd;d<�d<e��Z*Gd=d>�d>e�Z+dAd?d@�Z,dS)Bz-Examples supporting Sphinx doctest snippets.
�N)�	Interface)�implementer)�
IInterface)�adapter)�ICcCstj�d|�dS)Nz%s
)�sys�stdout�write��x�r�?/usr/lib/python3/dist-packages/zope/component/tests/examples.pyr	sr	c@seZdZdS)�	ITestTypeN��__name__�
__module__�__qualname__rrrr
rsrc@seZdZdS)�I1Nrrrrr
r src@seZdZdS)�I2Nrrrrr
r#src@seZdZdS)�I3Nrrrrr
r&src@seZdZdS)�I4Nrrrrr
r)src@seZdZdS)�IGINrrrrr
r,src@seZdZdS)�IQINrrrrr
r/src@seZdZdS)�ISINrrrrr
r2src@seZdZdS)�ISIINrrrrr
r5srcGsdS�Nr)�argsrrr
�noop8src@seZdZdd�Zdd�ZdS)�UcCs
||_dSr)r)�self�namerrr
�__init__=sz
U.__init__cCsd|jj|jfS)Nz%s(%s))�	__class__r�rrrr
�__repr__@sz
U.__repr__N)rrrr!r$rrrr
r;src@seZdZdS)�U1Nrrrrr
r%Csr%c@seZdZdS)�U12Nrrrrr
r&Gsr&cCstd|�dS)Nz
handle1 %s�r	r
rrr
�handle1Ksr(cGstdt|��dS)Nzhandle2 )r	�repr)Zobjectsrrr
�handle2Osr*cCstd|�dS)Nz
handle3 %sr'r
rrr
�handle3Rsr+cCstd|�dS)Nz
handle4 %sr'r
rrr
�handle4Vsr,c@seZdZdS)�GlobalRegistryNrrrrr
r-Zsr-)�GlobalAdapterRegistry�adapterscCst�td�dS)Nr/)�baser!r-rrrr
�
clear_base`sr1c@seZdZdd�ZdS)�ObcCsdS)Nz
<instance Ob>rr#rrr
r$fszOb.__repr__N�rrrr$rrrr
r2dsr2c@seZdZdd�ZdS)�Ob2cCsdS)Nz<instance Ob2>rr#rrr
r$nszOb2.__repr__Nr3rrrr
r4lsr4c@seZdZdS)�Ob3Nrrrrr
r5qsr5c@seZdZdd�ZdS)�CompcCs
||_dSr��context�rr8rrr
r!wsz
Comp.__init__N�rrrr!rrrr
r6usr6�c@seZdZdd�ZdS)�Comp2cCs
||_dSrr7r9rrr
r!~szComp2.__init__Nr:rrrr
r<|sr<c@s eZdZdZdd�Zdd�ZdS)�ConformsToIComponentLookupzAAllow a dummy sitemanager to conform/adapt to `IComponentLookup`.cCs
||_dSr)�sitemanager)rr>rrr
r!�sz#ConformsToIComponentLookup.__init__cCsddlm}||kr|jSdS)zAThis method is specified by the adapter PEP to do the adaptation.r)�IComponentLookupN)Zzope.component.interfacesr?r>)rZ	interfacer?rrr
�__conform__�sz&ConformsToIComponentLookup.__conform__N)rrr�__doc__r!r@rrrr
r=�sr=cCsJddlm}ddl}ddlm}ddlm}|�|�|d|j��dS)Nr)�	XMLConfig)�setUp)�tearDownz	meta.zcml)Zzope.configuration.xmlconfigrBZzope.componentZzope.component.testingrCrDZ	component)ZtestrB�zoperCrDrrr
�	clearZCML�srF)N)-rArZzope.interfacerrZzope.interface.interfacesrZzope.component._declarationrZzope.component.testfiles.viewsrr	rrrrrrrrrr�objectrr%r&r(r*r+r,r-Zzope.component.globalregistryr.r0r/r1r2�obr4r5r6�compr<r=rFrrrr
�<module>s`