????

Your IP : 3.23.92.150


Current Path : /lib/python3.6/site-packages/zope/component/tests/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/zope/component/tests/__pycache__/examples.cpython-36.pyc

3

,�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)�ICcCstjjd|�dS)Nz%s
)�sys�stdout�write)�x�r�/usr/lib/python3.6/examples.pyr	sr	c@seZdZdS)�	ITestTypeN)�__name__�
__module__�__qualname__rrrrr
sr
c@seZdZdS)�I1N)rrrrrrrr src@seZdZdS)�I2N)rrrrrrrr#src@seZdZdS)�I3N)rrrrrrrr&src@seZdZdS)�I4N)rrrrrrrr)src@seZdZdS)�IGIN)rrrrrrrr,src@seZdZdS)�IQIN)rrrrrrrr/src@seZdZdS)�ISIN)rrrrrrrr2src@seZdZdS)�ISIIN)rrrrrrrr5srcGsdS)Nr)�argsrrr�noop8src@seZdZdd�Zdd�ZdS)�UcCs
||_dS)N)r)�self�namerrr�__init__=sz
U.__init__cCsd|jj|jfS)Nz%s(%s))�	__class__r)rrrr�__repr__@sz
U.__repr__N)rrrrr rrrrr;src@seZdZdS)�U1N)rrrrrrrr!Csr!c@seZdZdS)�U12N)rrrrrrrr"Gsr"cCstd|�dS)Nz
handle1 %s)r	)r
rrr�handle1Ksr#cGstdt|��dS)Nzhandle2 )r	�repr)Zobjectsrrr�handle2Osr%cCstd|�dS)Nz
handle3 %s)r	)r
rrr�handle3Rsr&cCstd|�dS)Nz
handle4 %s)r	)r
rrr�handle4Vsr'c@seZdZdS)�GlobalRegistryN)rrrrrrrr(Zsr()�GlobalAdapterRegistry�adapterscCstjtd�dS)Nr*)�baserr(rrrr�
clear_base`sr,c@seZdZdd�ZdS)�ObcCsdS)Nz
<instance Ob>r)rrrrr fszOb.__repr__N)rrrr rrrrr-dsr-c@seZdZdd�ZdS)�Ob2cCsdS)Nz<instance Ob2>r)rrrrr nszOb2.__repr__N)rrrr rrrrr.lsr.c@seZdZdS)�Ob3N)rrrrrrrr/qsr/c@seZdZdd�ZdS)�CompcCs
||_dS)N)�context)rr1rrrrwsz
Comp.__init__N)rrrrrrrrr0usr0�c@seZdZdd�ZdS)�Comp2cCs
||_dS)N)r1)rr1rrrr~szComp2.__init__N)rrrrrrrrr3|sr3c@s eZdZdZdd�Zdd�ZdS)�ConformsToIComponentLookupzAAllow a dummy sitemanager to conform/adapt to `IComponentLookup`.cCs
||_dS)N)�sitemanager)rr5rrrr�sz#ConformsToIComponentLookup.__init__cCsddlm}||kr|jSdS)zAThis method is specified by the adapter PEP to do the adaptation.r)�IComponentLookupN)Zzope.component.interfacesr6r5)rZ	interfacer6rrr�__conform__�sz&ConformsToIComponentLookup.__conform__N)rrr�__doc__rr7rrrrr4�sr4cCsJddlm}ddl}ddlm}ddlm}|�|�|d|j��dS)Nr)�	XMLConfig)�setUp)�tearDownz	meta.zcml)Zzope.configuration.xmlconfigr9Zzope.componentZzope.component.testingr:r;Z	component)Ztestr9Zzoper:r;rrr�	clearZCML�sr<)N)-r8rZzope.interfacerrZzope.interface.interfacesrZzope.component._declarationrZzope.component.testfiles.viewsrr	r
rrrrrrrrr�objectrr!r"r#r%r&r'r(Zzope.component.globalregistryr)r+r*r,r-�obr.r/r0�compr3r4r<rrrr�<module>sZ