D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
python2.7
/
site-packages
/
zope
/
component
/
tests
/
Filename :
test_persistentregistry.pyo
back
Copy
� 6j/Qc @ sZ d Z d d l Z d e j f d � � YZ d e j f d � � YZ d � Z d � Z d S( s Tests for z.c.hooks i����Nt PersistentAdapterRegistryTestsc B sn e Z d � Z d � Z d � Z d � Z e 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 PersistentAdapterRegistry( t! zope.component.persistentregistryR ( t selfR ( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyt _getTargetClass s c O s | j � | | � S( N( R ( R t argst kw( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyt _makeOne s c C s d t f d � � Y} | | � S( Nt _Cachec B s# e Z d � Z d � Z d � Z RS( c S s | | _ g | _ d S( N( t _jart _mru( R t jar( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyt __init__ s c S s | j j | � d S( N( R t append( R t oid( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyt mru# s c S s | j | _ | | _ d S( N( R t _p_jart _p_oid( R R t obj( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyt new_ghost% s ( t __name__t __module__R R R ( ( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyR s ( t object( R R R ( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyt _makeCache s c C sa d d l m } d d l m } | | � d t f d � � Y� } | � } | j | � | _ | S( Ni����( t implementer( t IPersistentDataManagert _Jarc B s# e Z d � Z d � Z d � Z RS( c S s g | _ g | _ d S( N( t _loadedt _registered( R ( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyR 2 s c S s | j j | j � d S( N( R R R ( R R ( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyt setstate5 s c S s | j j | j � d S( N( R R R ( R R ( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyt register7 s ( R R R R R ( ( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyR 0 s ( t zope.interfaceR t persistent.interfacesR R R t _cache( R R R R R ( ( sP /usr/lib/python2.7/site-packages/zope/component/tests/test_persistentregistry.pyt _makeJar+ s c K sG t d � } | j | � } | j � } | j j | | � | | | f S( Ns i s ( t _makeOctetsR R"