D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
python2.7
/
site-packages
/
zope
/
component
/
tests
/
Filename :
test_hooks.pyc
back
Copy
� 6j/Qc @ s5 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 e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ e � Z d e f d � � YZ d e f d � � YZ d � Z d S( s Tests for z.c.hooks i����Nt Test_read_propertyc B s# e Z d � Z d � Z d � Z RS( c C s d d l m } | S( Ni����( t read_property( t zope.component.hooksR ( t selfR ( ( sC /usr/lib/python2.7/site-packages/zope/component/tests/test_hooks.pyt _getTargetClass s c sq d t f � f d � � Y} | � } � j | j d � d | _ � j | j d � | ` � j | j d � d S( Nt Fooc s e Z � j � d � � Z RS( c S s d S( Nt BAR( ( R ( ( sC /usr/lib/python2.7/site-packages/zope/component/tests/test_hooks.pyt bar s ( t __name__t __module__R R ( ( R ( sC /usr/lib/python2.7/site-packages/zope/component/tests/test_hooks.pyR s R t BAZ( t objectt assertEqualR ( R R t foo( ( R sC /usr/lib/python2.7/site-packages/zope/component/tests/test_hooks.pyt test_via_instance s c sa d t f � f d � � Y} | j } � j t | � j � � � � j | j t � � d � d S( NR c s e Z � j � d � � Z RS( c S s d S( NR ( ( R ( ( sC /usr/lib/python2.7/site-packages/zope/component/tests/test_hooks.pyR '