D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
python2.7
/
site-packages
/
zope
/
component
/
tests
/
Filename :
test__declaration.pyc
back
Copy
� 6j/Qc @ sj d Z d d l Z d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d � Z d S( s! Test adapter declaration helpers i����Nt Test_adapterc B sG e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s d d l m } | S( Ni����( t adapter( t zope.component._declarationR ( t selfR ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyt _getTargetClass s c G s | j � | � S( N( R ( R t interfaces( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyt _makeOne s c C s) | j � } | j t | j � g � d S( N( R t assertEqualt listR ( R t deco( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyt test_ctor_no_interfaces s c C sq d d l m } d | f d � � Y} d | f d � � Y} | j | | � } | j t | j � | | g � d S( Ni����( t Interfacet IFooc B s e Z RS( ( t __name__t __module__( ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyR ! s t IBarc B s e Z RS( ( R R ( ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyR # s ( t zope.interfaceR R R R R ( R R R R R ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyt test_ctor_w_interfaces s c C s� d d l m } d | f d � � Y} d | f d � � Y} | j | | � d t f d � � Y� } | j | j | | f � d S( Ni����( R R c B s e Z RS( ( R R ( ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyR * s R c B s e Z RS( ( R R ( ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyR , s t Bazc B s e Z RS( ( R R ( ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyR . s ( R R R t objectR t __component_adapts__( R R R R R ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyt test__call___w_class( s c C s� d d l m } d | f d � � Y} d | f d � � Y} | j | | � d t f d � � Y� } | � } | j t t | d � d S( Ni����( R R c B s e Z RS( ( R R ( ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyR 5 s R c B s e Z RS( ( R R ( ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyR 7 s R c B s e Z RS( ( R R ( ( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyR 9 s t __component_adapts_( R R R R t assertRaisest AttributeErrort getattr( R R R R R t baz( ( sJ /usr/lib/python2.7/site-packages/zope/component/tests/test__declaration.pyt&