-í
ÿ?c       sA     d  k  Z   d  k Z  d  k Z  d  k Z  d  k Z  d  k Z  d  k Z  d  k Z  d  k Z  d  k	 Z
  d k l Z  d k l Z  d k l Z  d k l Z  d k l Z ! d k l Z " d k l Z l Z # d k l Z l Z $ d	 k l Z % d
 k l  Z  & d k l! Z! l" Z" l# Z# l$ Z$ ) d d Z% + d e
 i& i' f d „  ƒ  YZ( 3 d e f d „  ƒ  YZ) G d f  d „  ƒ  YZ* K d e f d „  ƒ  YZ+ ì d e+ f d „  ƒ  YZ, Fd e+ f d „  ƒ  YZ- Œd e+ f d „  ƒ  YZ. Jd e+ f d „  ƒ  YZ/ Äd e i0 f d „  ƒ  YZ1 d  S(    N(   s   ClientStorage(   s   ClientDisconnected(   s
   Marshaller(   s   DisconnectedError(   s   forker(   s   DB(   s   get_transactions   Transaction(   s   ReadOnlyErrors   ConflictError(   s   StorageTestBase(   s   MinPO(   s   zodb_pickles   zodb_unpickles   handle_all_serialss   handle_serialss    i   s   TestServerStubc      s)   + t  Z , e i i i Z . d „  Z RS(   Nc    s&   . 0 |  i | ƒ |  _ 1 |  i Sd  S(   N(   s   selfs'   _TestServerStub__super_getInvalidationss   tids   _last_invals(   s   selfs   tid(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   getInvalidations. s   (   s   __name__s
   __module__s   ZEOs
   ServerStubs   StorageServers   getInvalidationss'   _TestServerStub__super_getInvalidations(    (    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   TestServerStub+ s   	s   TestClientStoragec      sA   3 t  Z 5 e Z 7 e Z 9 d „  Z = d „  Z A d „  Z RS(   Nc    s1   9 : t  i ƒ  |  _ ; t i |  | ƒ |  _ d  S(   N(   s	   threadings   Events   selfs
   end_verifys   ClientStorages   verify_caches   stubs   verify_result(   s   selfs   stub(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   verify_cache9 s   c    s'   = > t  i |  ƒ ? |  i i ƒ  d  S(   N(   s   ClientStorages	   endVerifys   selfs
   end_verifys   set(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys	   endVerify= s   c    s4   A B z C t  i |  | ƒ SWd  D E t |  _ Xd  S(   N(   s   ClientStorages   testConnections   selfs   conns   Trues   test_connection(   s   selfs   conn(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   testConnectionA s   (	   s   __name__s
   __module__s   Falses   test_connections   TestServerStubs   StorageServerStubClasss   verify_caches	   endVerifys   testConnection(    (    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   TestClientStorage3 s
   			s   DummyDBc      s   G t  Z H d „  Z RS(   Nc    s
   H I d  S(   N(    (   s   selfs   argss   kwargs(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys
   invalidateH s   (   s   __name__s
   __module__s
   invalidate(    (    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   DummyDBG s   	s   CommonSetupTearDownc    	  s  K t  Z d  Z L N e i Z O e i Z P d Z Q e	 Z
 R e	 Z S d Z T e Z V d „  Z h d „  Z ‘ d „  Z ” d „  Z ˜ d „  Z › d Z � e	 d d d d e	 e	 e	 d	 „ Z ± d
 „  Z ½ d d d d e	 d „ Z Í d d „ Z Õ d e	 d „ Z á d d „ Z RS(   s   Common boilerplatei    c    s¢   V \ ] |  i ƒ  ^ t i d t i d |  i ƒ  ƒ _ t i ƒ  |  _ ` g  |  _	 a g  |  _
 b g  |  _ c g  |  _ d g  |  _ e |  i ƒ  f |  i ƒ  d S(   sÎ   Test setup for connection tests.

        This starts only one server; a test may start more servers by
        calling self._newAddr() and then self.startServer(index=i)
        for i in 1, 2, ...
        s   testZEOs
   setUp() %sN(   s   selfs!   _CommonSetupTearDown__super_setUps   zLOGs   LOGs   INFOs   ids   tempfiles   mktemps   files   addrs   _pidss   _serverss
   conf_pathss   cachess   _newAddrs   startServer(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   setUpV s   #c 	   sU  h i j t  i d t  i d |  i ƒ  ƒ k x$ |  i Dk ] } l t i | ƒ q6 Wm t	 |  d t
 ƒ t
 j	 oa n |  i i ƒ  o t |  i d ƒ o7 p t  i d t  i d |  i i ƒ r |  i i ƒ  n n s x8 |  i Ds ]* } t | t
 j	 o u t i | ƒ n qÝ Wv t t d ƒ o1 x x' |  i Dx ] } y t i | d ƒ q.Wn z xì |  i Dz ]Þ } { xÒ d d f D{ ]Á } | d	 | | f } ‚ d } ƒ t i i | ƒ ok „ d } … xX t d
 ƒ D… ]G } † y ‡ t i  | ƒ Wn ˆ ‰ t! i" d ƒ n X‹ d } Œ PqÌWn � | o Ž t i  | ƒ n qxWq_W� |  i# ƒ  d S(   s   Try to cause the tests to halts   testZEOs   tearDown() %ss   _storages   cleanups   cleanup storage %ss   waitpidi    i   s   c1-%s-%d.zeci   f0.5N($   s   zLOGs   LOGs   INFOs   selfs   ids
   conf_pathss   ps   oss   removes   getattrs   Nones   _storages   closes   hasattrs   DEBUGs   __name__s   cleanups   _serverss	   adminaddrs   forkers   shutdown_zeo_servers   _pidss   pids   waitpids   cachess   cs   is   paths   need_to_deletes   existss   ranges   dummys   unlinks   times   sleeps$   _CommonSetupTearDown__super_tearDown(	   s   selfs   dummys   cs   need_to_deletes   is	   adminaddrs   pids   ps   path(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   tearDownh sJ   # 	# 	 	 	 			 		
c    s    ‘ ’ |  i i |  i ƒ  ƒ d  S(   N(   s   selfs   addrs   appends   _getAddr(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   _newAddr‘ s   c    s#   ” – d t  i d d d ƒ f Sd  S(   Ns	   localhosti¨a  i0u  i   (   s   randoms	   randrange(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   _getAddr” s   c    s   ˜ ™ t  ‚ d  S(   N(   s   NotImplementedError(   s   selfs   paths   creates	   read_only(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys	   getConfig˜ s   i   i@ c	 
   sØ   �   | t j o. ¡ t |  i i ƒ } ¢ |  i i d 7_ n £ |  i i | ƒ ¤ t |  i	 ¥ d | ¦ d | § d | ¨ d d © d | ª d | « d	 | ¬ d
 | ­ d | ƒ	}	 ® |	 i t ƒ  t ƒ ¯ |	 Sd  S(   Ni   s   clients
   cache_sizes   waits   min_disconnect_pollf0.10000000000000001s	   read_onlys   read_only_fallbacks   usernames   passwords   realm(   s   caches   Nones   strs   selfs	   __class__s   cache_ids   cachess   appends   TestClientStorages   addrs
   cache_sizes   waits	   read_onlys   read_only_fallbacks   usernames   passwords   realms   storages
   registerDBs   DummyDB(
   s   selfs   caches
   cache_sizes   waits	   read_onlys   read_only_fallbacks   usernames   passwords   realms   storage(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   openClientStorage� s    								c    s�   ± ² t  i | ƒ } ³ | o ´ d | _ n µ |  i o ¶ d d f | _ n · |  i	 o ¸ |  i	 | _
 n ¹ |  i o º |  i | _ n » | Sd  S(   Ni   s    i¤  (   s   forkers	   ZEOConfigs   addrs   zconfs   ro_svrs	   read_onlys   selfs   monitors   monitor_addresss   invqs   invalidation_queue_sizes   timeouts   transaction_timeout(   s   selfs   addrs   ro_svrs   zconf(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   getServerConfig± s   
c    s
  ½ ¾ |  i | } ¿ t i d t i À d | | | | f ƒ Â d |  i | f }
 Ã |  i
 |
 | | ƒ } Ä |  i | | ƒ } Å | t j o Æ |  i } n Ç t i | | | d | ƒ \ } } }	 }
 É |  i i |
 ƒ Ê |  i i |	 ƒ Ë |  i i | ƒ d  S(   Ns   testZEOs3   startServer(create=%d, index=%d, read_only=%d) @ %ss   %s.%di   (   s   selfs   addrs   indexs   zLOGs   LOGs   INFOs   creates	   read_onlys   files   paths	   getConfigs   sconfs   getServerConfigs   ro_svrs   zconfs   keeps   Nones   forkers   start_zeo_servers   zeoports	   adminaddrs   pids
   conf_pathss   appends   _pidss   _servers(   s   selfs   creates   indexs	   read_onlys   ro_svrs   keeps   sconfs   zconfs	   adminaddrs   pids   paths   zeoports   addr(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   startServer½ s   +c    su   Í Î t  i d t  i d | |  i | f ƒ Ð |  i | } Ñ | t j	 o$ Ò t i	 | ƒ Ó t |  i | <n d  S(   Ns   testZEOs   shutdownServer(index=%d) @ %s(
   s   zLOGs   LOGs   INFOs   indexs   selfs   _serverss	   adminaddrs   Nones   forkers   shutdown_zeo_server(   s   selfs   indexs	   adminaddr(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   shutdownServerÍ s
   *f30.0c    s¢   Õ Ö | t j o × |  i } n Ù t i ƒ  } Ú | | } Û xY Û | i ƒ  oG Ü t	 i
 d ƒ Ý t i ƒ  } Þ | | j o ß |  i d ƒ n qE Wd  S(   Nf0.10000000000000001s(   timed out waiting for storage to connect(   s   storages   Nones   selfs   _storages   times   nows   timeouts   giveups   is_connecteds   asyncores   polls   fail(   s   selfs   timeouts   storages   nows   giveup(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   pollUpÕ s    c    s„   á ã t  i  ƒ  } ä | | } å x[ å |  i i ƒ  oG æ t i d ƒ ç t  i  ƒ  } è | | j o é |  i	 d ƒ n q% Wd  S(   Nf0.10000000000000001s+   timed out waiting for storage to disconnect(
   s   times   nows   timeouts   giveups   selfs   _storages   is_connecteds   asyncores   polls   fail(   s   selfs   timeouts   giveups   now(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   pollDowná s    (   s   __name__s
   __module__s   __doc__s   StorageTestBases   setUps!   _CommonSetupTearDown__super_setUps   tearDowns$   _CommonSetupTearDown__super_tearDowns   keeps   Nones   invqs   timeouts   monitors   DummyDBs   db_classs   _newAddrs   _getAddrs	   getConfigs   cache_ids   openClientStorages   getServerConfigs   startServers   shutdownServers   pollUps   pollDown(    (    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   CommonSetupTearDownK s(   					)	$s   ConnectionTestsc      sà   ì t  Z d  Z ñ ó d „  Z ü d „  Z d „  Z d „  Z ,d „  Z 5d „  Z Hd „  Z	 `d „  Z
 jd	 „  Z �d
 „  Z  d „  Z ´d „  Z Ùd „  Z Ýd „  Z çd „  Z d „  Z $d „  Z RS(   s¡   Tests that explicitly manage the server process.

    To test the cache or re-connection, these test cases explicit
    start and stop a ZEO storage server.
    c    s�   ó ô x$ t  d ƒ Dô ] } õ |  i ƒ  q Wö |  i d d ƒ |  _ ÷ |  i i ƒ  } ø t d ƒ } ù |  i
 | d | ƒú |  i i ƒ  d  S(   Ni   s   testi † i   s   data(   s   ranges   is   selfs   _newAddrs   openClientStorages   _storages   new_oids   oids   MinPOs   objs   _dostores   close(   s   selfs   objs   is   oid(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkMultipleAddressesó s    	c    sï   ü  |  i ƒ  |  i d d ƒ |  _ |  i ƒ  |  i d d ƒ |  i d d ƒ 
d } xa t d ƒ D]P } y |  i ƒ  d } PWn& t
 j
 o t i d ƒ n Xqt W|  i | ƒ |  i i ƒ  d  S(   Ns   testi † s   indexi    i   i
   f0.5(   s   selfs   _newAddrs   openClientStorages   _storages   _dostores   shutdownServers   startServers   did_a_stores   ranges   is   ClientDisconnecteds   times   sleeps   assert_s   close(   s   selfs   is   did_a_store(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkMultipleServersü s    	 		c    sE   |  i d d ƒ |  _ |  i t |  i ƒ |  i i ƒ  d  S(   Ns	   read_onlyi   (   s   selfs   openClientStorages   _storages   assertRaisess   ReadOnlyErrors   _dostores   close(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkReadOnlyClients   c    s}   "|  i ƒ  #g  |  _ %|  i d d d d d d ƒ '|  i d d ƒ |  _ )|  i t |  i ƒ *|  i i	 ƒ  d  S(   Ns   createi    s   indexs   ro_svri   s	   read_only(
   s   selfs   shutdownServers   _serverss   startServers   openClientStorages   _storages   assertRaisess   ReadOnlyErrors   _dostores   close(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkReadOnlyServers   c    s<   ,0|  i d d ƒ |  _ 2|  i ƒ  3|  i i ƒ  d  S(   Ns   read_only_fallbacki   (   s   selfs   openClientStorages   _storages   _dostores   close(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkReadOnlyFallbackWritable,s   c    s–   59|  i ƒ  :g  |  _ <|  i d d d d d d ƒ >|  i d d ƒ |  _ ?|  i |  i i ƒ  ƒ A|  i t	 |  i
 ƒ B|  i i ƒ  d  S(   Ns   createi    s   indexs   ro_svri   s   read_only_fallback(   s   selfs   shutdownServers   _serverss   startServers   openClientStorages   _storages   assert_s
   isReadOnlys   assertRaisess   ReadOnlyErrors   _dostores   close(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys#   checkReadOnlyFallbackReadOnlyServer5s   c    sŸ   HL|  i ƒ  |  _ N|  i ƒ  Q|  i ƒ  Rg  |  _ T|  i ƒ  V|  i t |  i ƒ Y|  i	 d d ƒ [|  i
 ƒ  ]|  i ƒ  ^|  i i ƒ  d  S(   Ns   createi    (   s   selfs   openClientStorages   _storages   _dostores   shutdownServers   _serverss   pollDowns   assertRaisess   ClientDisconnecteds   startServers   pollUps   close(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkReconnectWritableHs   c    sd   `d|  i ƒ  e|  i d d d d ƒ|  _ f|  i t g|  i i d d ƒ h|  i i ƒ  d  S(   Ns   testiè  s   waiti    s   fredwashs    (   s   selfs   shutdownServers   openClientStorages   _storages   assertRaisess   ClientDisconnecteds   loads   close(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkDisconnectionError`s
   c    s8  jk|  i ƒ  |  _ l|  i ƒ  mg  i } t d ƒ Dm] } | |  i i ƒ  ƒ q9 ~ } nt
 ƒ  } o|  i i | ƒ pxE | Dp]: } qt t | ƒ ƒ } r|  i i | t | d | ƒ q‡ Ws|  i ƒ  t|  i t |  i i | ƒ u|  i i | ƒ v|  i d d ƒ w|  i i ƒ  x|  i ƒ  d  S(   Ni   s    s   createi    (   s   selfs   openClientStorages   _storages   _dostores   appends   _[1]s   ranges   is   new_oids   oidss   Transactions   txns	   tpc_begins   oids   zodb_pickles   MinPOs   datas   stores   Nones   shutdownServers   assertRaisess   ClientDisconnecteds   tpc_votes	   tpc_aborts   startServers   _wait(   s   selfs   txns   is   oids   oidss   _[1]s   data(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkDisconnectedAbortjs     %
 	#c    só   �”|  i d d ƒ |  _ •|  i i ƒ  } –t d ƒ } —|  i | d | ƒ} ˜|  i i	 ƒ  ™|  i
 ƒ  š|  i d d d d ƒ|  _ ›|  i i | d ƒ \ } } œ|  i t | ƒ t d ƒ ƒ �|  i | | ƒ ž|  i i	 ƒ  d  S(   Ns   testi † i   s   datas   waiti    s    (   s   selfs   openClientStorages   _storages   new_oids   oids   MinPOs   objs   _dostores   revid1s   closes   shutdownServers   loads   datas   revid2s   assertEquals   zodb_unpickle(   s   selfs   objs   revid2s   oids   datas   revid1(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkBasicPersistence�s   c    s   ¦|  i d d ƒ |  _ §|  i i ƒ  } ¨t d d ƒ } ©|  i | d | ƒª|  i i ƒ  } «t d d ƒ } ¬|  i | d | ƒ­|  i i
 ƒ  ®|  i ƒ  ¯|  i d d d d ƒ|  _ °|  i i | d	 ƒ ±|  i i | d	 ƒ ²|  i i
 ƒ  d  S(
   Ns   testiè  s   1iô  s   datas   2s   waiti    s    (   s   selfs   openClientStorages   _storages   new_oids   oid1s   MinPOs   obj1s   _dostores   oid2s   obj2s   closes   shutdownServers   load(   s   selfs   obj1s   obj2s   oid1s   oid2(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkRollover s   c    sŒ  ´¾|  i ƒ  |  _ ¿|  i i ƒ  } Àt d ƒ } Á|  i | d | ƒÂt i	 d t i
 Ãd ƒ Ä|  i ƒ  Åt i	 d t i
 Æd ƒ Ç|  i d d ƒ È|  i i ƒ  } Ét d ƒ } Êx” Êd o‰ Ëy Ì|  i | d | ƒÍPWnQ Ît j
 oB Ðt i	 d t i
 Ñd	 Òd
 t i ƒ  ƒÓt ƒ  i ƒ  n XÕt i d ƒ qË WÖt i	 d t i
 d ƒ ×|  i i ƒ  d  S(   Ni   s   datas   checkReconnections   About to shutdown servers   About to restart servers   createi    i   s%   Error after server restart; retrying.s   errorf0.10000000000000001s   finished(   s   selfs   openClientStorages   _storages   new_oids   oids   MinPOs   objs   _dostores   zLOGs   LOGs   INFOs   shutdownServers   startServers   ClientDisconnecteds   syss   exc_infos   get_transactions   aborts   times   sleeps   close(   s   selfs   objs   oid(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkReconnection´s2   


 
c    s   ÙÛ|  i d ƒ d  S(   Ns   salty(   s   selfs   _bad_message(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkBadMessage1Ùs   c    sZ   Ýßàd f  d „  ƒ  Ya  ãt ƒ  i d d d t  ƒ  f ƒ } ä|  i | ƒ åb  d  S(   Ns   Hackc      s   àt  Z áRS(   N(   s   __name__s
   __module__(    (    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   Hackàs   	i   i    s   foo(   s   Hacks
   Marshallers   encodes   msgs   selfs   _bad_message(   s   selfs   msg(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkBadMessage2Ýs
   $c    s×   çì|  i ƒ  |  _ í|  i ƒ  ð|  i i i } ñ| i | ƒ óy ô|  i ƒ  Wn õt	 j
 o
 ön" Xø|  i i
 ƒ  ù|  i d ƒ ú|  i i
 ƒ  ü|  i ƒ  |  _ ý|  i ƒ  þ|  i i
 ƒ  d  S(   Ns-   Server did not disconnect after bogus message(   s   selfs   openClientStorages   _storages   _dostores   _servers   rpcs	   zrpc_conns   message_outputs   msgs   ClientDisconnecteds   closes   fail(   s   selfs   msgs	   zrpc_conn(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   _bad_messageçs   c    s[  	d } | |  _ | |  _ | |  _ | |  _ x= t d |  i ƒ D]& } |  i ƒ  |  i	 d | ƒ qR Wg  } z¡ xM t |  i ƒ D]9 } t |  d | ƒ } | i | ƒ | i ƒ  q¡ WxD | D]9 } | i d ƒ |  i | i ƒ  d | i ƒ  ƒ që WWd   !x | D!] } "| i ƒ  q<WXd  S(   Ni   i   s   indexs   T%di<   s   %s didn't die(   s   Ns   selfs   nserverss   nthreadss   ntranss   nobjs   ranges   is   _newAddrs   startServers   threadss	   MSTThreads   ts   appends   starts   joins   failIfs   isAlives   getNames   closeclients(   s   selfs   threadss   ts   is   N(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   NOcheckMultiStorageTransactions0   	 		 	
 	+
 	c    s·  $%t  |  i ƒ  ƒ } &| i ƒ  } '| i ƒ  } )t d ƒ | d <*t	 ƒ  i
 ƒ  ,t  |  i ƒ  ƒ } -| i ƒ  i ƒ  } /|  i | d i d ƒ 1t d ƒ | d <2t	 ƒ  i
 ƒ  5xX t d ƒ D5]G } 6| i i ƒ  7| i i | i ƒ o 8Pn 9t i d ƒ qÐ W:|  i | i i | i ƒ ƒ =| i ƒ  >| i ƒ  i | ƒ ?| i ƒ  i ƒ  @| i ƒ  A|  i | i | i ƒ C| i ƒ  D| i ƒ  d  S(   Ns   as   bi
   f0.10000000000000001(    s   DBs   selfs   openClientStorages   db1s   opens   c1s   roots   r1s   MinPOs   get_transactions   commits   db2s   r2s   assertEquals   values   ranges   is   _storages   syncs   _invalidateds   has_keys   _p_oids   times   sleeps   assert_s   setLocalTransactions   getTransactions   registers   aborts   keyss	   _p_serials   close(   s   selfs   r1s   r2s   is   db1s   c1s   db2(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkCrossDBInvalidations$s0    	(   s   __name__s
   __module__s   __doc__s   checkMultipleAddressess   checkMultipleServerss   checkReadOnlyClients   checkReadOnlyServers   checkReadOnlyFallbackWritables#   checkReadOnlyFallbackReadOnlyServers   checkReconnectWritables   checkDisconnectionErrors   checkDisconnectedAborts   checkBasicPersistences   checkRollovers   checkReconnections   checkBadMessage1s   checkBadMessage2s   _bad_messages   NOcheckMultiStorageTransactions   checkCrossDBInvalidations(    (    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   ConnectionTestsì s$   			
#%
 s	   InvqTestsc      s,   Ft  Z Gd Z Id „  Z id „  Z RS(   Ni   c    s˜  IJ|  i d d ƒ } K|  i | i d ƒ M|  i ƒ  |  _ N|  i i ƒ  } O|  i i ƒ  } R|  i |  i i d ƒ U|  i	 | ƒ } V|  i	 | | ƒ } Y|  i	 | ƒ } Z|  i	 | | ƒ } \| i | d ƒ ]| i ƒ  _|  i	 | | ƒ } `|  i d d ƒ } a|  i | i d ƒ b|  i | i i c| | d f g f ƒ e|  i | i | d ƒ f|  i i | d ƒ ƒ g| i ƒ  d  S(   Ns   caches   tests   full verifications    s   quick verification(   s   selfs   openClientStorages
   perstorages   assertEquals   verify_results   _storages   new_oids   oids   oid2s   _dostores   revids   revid2s   loads   closes   _servers   _last_invals(   s   selfs
   perstorages   oids   revid2s   revids   oid2(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys"   checkQuickVerificationWith2ClientsIs(   c    sà  ij|  i d d ƒ } k|  i | i d ƒ m|  i ƒ  |  _ n|  i i ƒ  } q|  i |  i i d ƒ t|  i | ƒ } u|  i | | ƒ } w| i
 | d ƒ x| i ƒ  {x, t d ƒ D{] } ||  i | | ƒ } qÂ W~|  i d d ƒ } |  i | i d ƒ €t i ƒ  d } �xP �| i i ƒ  o; ‚| i ƒ  ƒt i ƒ  | j o „|  i d ƒ n q(W†|  i |  i i
 | d ƒ d | ƒ ‡|  i | i
 | d ƒ ˆ|  i i
 | d ƒ ƒ Š| i ƒ  d  S(	   Ns   caches   tests   full verifications    i   i   s   timed out waiting for endVerifyi   (   s   selfs   openClientStorages
   perstorages   assertEquals   verify_results   _storages   new_oids   oids   _dostores   revids   loads   closes   ranges   is   times   ts
   end_verifys   isSets   syncs   fail(   s   selfs   ts   is   oids   revids
   perstorage(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys)   checkVerificationWith2ClientsInvqOverflowis0    	 &(   s   __name__s
   __module__s   invqs"   checkQuickVerificationWith2Clientss)   checkVerificationWith2ClientsInvqOverflow(    (    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys	   InvqTestsFs   		 s   ReconnectionTestsc      s}   Œt  Z ‘d Z ’d Z ”d „  Z ¡d „  Z ®d „  Z Æd „  Z Þd „  Z ûd „  Z	 d	 „  Z
 *d
 „  Z RS(   Ni   i   c  	  ss   ”˜|  i ƒ  ™g  |  _ ›|  i d d d d d d d d ƒ �|  i d d ƒ |  _ Ÿ|  i t |  i ƒ d  S(   Ns   createi    s   indexs	   read_onlyi   s   keep(	   s   selfs   shutdownServers   _serverss   startServers   openClientStorages   _storages   assertRaisess   ReadOnlyErrors   _dostore(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkReadOnlyStorage”s
   %c  	  ss   ¡¥|  i ƒ  ¦g  |  _ ¨|  i d d d d d d d d ƒ ª|  i d d ƒ |  _ ¬|  i t |  i ƒ d  S(   Ns   createi    s   indexs	   read_onlyi   s   keeps   read_only_fallback(	   s   selfs   shutdownServers   _serverss   startServers   openClientStorages   _storages   assertRaisess   ReadOnlyErrors   _dostore(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys$   checkReadOnlyFallbackReadOnlyStorage¡s
   %c    s³   ®³|  i d d ƒ |  _ µ|  i t |  i ƒ ¸|  i ƒ  ¹g  |  _ »|  i ƒ  ½|  i t |  i ƒ À|  i	 d d d d d d ƒ Â|  i
 ƒ  Ä|  i t |  i ƒ d  S(   Ns	   read_onlyi   s   createi    s   keep(   s   selfs   openClientStorages   _storages   assertRaisess   ReadOnlyErrors   _dostores   shutdownServers   _serverss   pollDowns   startServers   pollUp(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkReconnectReadOnly®s   c    sª   ÆË|  i d d ƒ |  _ Í|  i ƒ  Ð|  i ƒ  Ñg  |  _ Ó|  i ƒ  Õ|  i t |  i ƒ Ø|  i	 d d d d d d ƒ Ú|  i
 ƒ  Ü|  i t |  i ƒ d  S(   Ns   read_only_fallbacki   s   createi    s	   read_onlys   keep(   s   selfs   openClientStorages   _storages   _dostores   shutdownServers   _serverss   pollDowns   assertRaisess   ClientDisconnecteds   startServers   pollUps   ReadOnlyError(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkReconnectFallbackÆs   c    sÖ   Þã|  i ƒ  äg  |  _ æ|  i d d d d ƒ è|  i d d ƒ |  _ ê|  i t |  i ƒ í|  i ƒ  îg  |  _ ð|  i	 ƒ  ò|  i t
 |  i ƒ õ|  i d d d d ƒ ÷|  i ƒ  ù|  i ƒ  d  S(   Ns   createi    s	   read_onlyi   s   read_only_fallbacks   keep(   s   selfs   shutdownServers   _serverss   startServers   openClientStorages   _storages   assertRaisess   ReadOnlyErrors   _dostores   pollDowns   ClientDisconnecteds   pollUp(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkReconnectUpgradeÞs   c  	  s  û |  i ƒ  g  |  _ |  i ƒ  |  i d d d d d d d d ƒ |  i d d ƒ |  _ 
|  i t |  i	 ƒ |  i d d d d d d ƒ xn t
 d ƒ D]M } y |  i	 ƒ  PWn, t t f j
 o t i d	 ƒ n Xq« W|  i d
 ƒ d  S(   Ns   createi    s   indexs	   read_onlyi   s   keeps   read_only_fallbacki,  f0.10000000000000001s1   Couldn't store after starting a read-write server(   s   selfs   shutdownServers   _serverss   _newAddrs   startServers   openClientStorages   _storages   assertRaisess   ReadOnlyErrors   _dostores   ranges   is   ClientDisconnecteds   times   sleeps   fail(   s   selfs   i(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkReconnectSwitchûs   % 	c    s§   |  i ƒ  |  _ |  i |  i i d ƒ  |  i ƒ  !|  i ƒ  "|  i ƒ  #t |  i _ $|  i	 d d d d ƒ %|  i
 ƒ  (|  i |  i i d ƒ d  S(   Ns   full verifications   createi    s   keeps   no verification(   s   selfs   openClientStorages   _storages   assertEquals   verify_results   _dostores   shutdownServers   pollDowns   Nones   startServers   pollUp(   s   self(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys"   checkNoVerificationOnServerRestarts   c    sz  *+|  i d d ƒ } ,|  i | i d ƒ .|  i ƒ  |  _ /|  i i ƒ  } 2|  i |  i i d ƒ 5|  i | ƒ } 6|  i | | ƒ 8| i
 | d ƒ :|  i ƒ  <|  i ƒ  =t |  i _ >t | _ ?t i d t i d ƒ @|  i d d d	 d ƒ A|  i ƒ  B|  i d
 | ƒ E|  i |  i i d ƒ F|  i | i d ƒ G| i ƒ  H|  i i ƒ  d  S(   Ns   caches   tests   full verifications    s   testZEOs   2ALLBEEFs   createi    s   keeps   storages   no verification(   s   selfs   openClientStorages
   perstorages   assertEquals   verify_results   _storages   new_oids   oids   _dostores   revids   loads   shutdownServers   pollDowns   Nones   zLOGs   LOGs   INFOs   startServers   pollUps   close(   s   selfs   oids   revids
   perstorage(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys.   checkNoVerificationOnServerRestartWith2Clients*s(   (   s   __name__s
   __module__s   keeps   invqs   checkReadOnlyStorages$   checkReadOnlyFallbackReadOnlyStorages   checkReconnectReadOnlys   checkReconnectFallbacks   checkReconnectUpgrades   checkReconnectSwitchs"   checkNoVerificationOnServerRestarts.   checkNoVerificationOnServerRestartWith2Clients(    (    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   ReconnectionTestsŒs   			 s   TimeoutTestsc      sP   Jt  Z Kd Z Md „  Z Vd „  Z ^d „  Z ed „  Z �d „  Z RS(   Ni   c    sx   MN|  i ƒ  } Ot ƒ  } P| i | ƒ Q| i | ƒ Rt i d ƒ S|  i	 t
 | i | ƒ T| i ƒ  d  S(   Ni   (   s   selfs   openClientStorages   storages   Transactions   txns	   tpc_begins   tpc_votes   times   sleeps   assertRaisess   ClientDisconnecteds
   tpc_finishs   close(   s   selfs   txns   storage(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkTimeoutMs   c    s_   VW|  i ƒ  } Xt ƒ  } Y| i | ƒ Z| i | ƒ [| i | ƒ \| i ƒ  d  S(   N(	   s   selfs   openClientStorages   storages   Transactions   txns	   tpc_begins   tpc_votes	   tpc_aborts   close(   s   selfs   txns   storage(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkTimeoutOnAbortVs   c    sO   ^_|  i ƒ  } `t ƒ  } a| i | ƒ b| i | ƒ c| i ƒ  d  S(   N(   s   selfs   openClientStorages   storages   Transactions   txns	   tpc_begins	   tpc_aborts   close(   s   selfs   txns   storage(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkTimeoutOnAbortNoLock^s
   c    sK  ef|  i } g|  i } h|  i ƒ  |  _ } j| | i i	 ƒ l| i
 ƒ  } mt d ƒ } ot ƒ  } p| i | ƒ q| i | t t | ƒ d | ƒ } r| i | ƒ tt i d ƒ u| i ƒ  v| | i ƒ  ƒ w| i ƒ  x| | i ƒ  ƒ z| t | i | ƒ || | i i	 ƒ | t | i | d ƒ d  S(   Ni   s    i   (   s   selfs   assertRaisess   raisess
   failUnlesss   unlesss   openClientStorages   _storages   storages   _caches   _indexs   new_oids   oids   MinPOs   objs   Transactions   ts	   tpc_begins   stores   ZEROs   zodb_pickles   revid1s   tpc_votes   times   sleeps   syncs   is_connecteds   _waits   ClientDisconnecteds
   tpc_finishs   KeyErrors   load(   s   selfs   unlesss   oids   storages   revid1s   raisess   objs   t(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkTimeoutAfterVotees$   $c    sŽ  �‚|  i } ƒ|  i } „|  i } …|  i ƒ  |  _ } ‡| | i
 i ƒ ‰| i ƒ  } Št d ƒ } �t ƒ  } Ž| i | ƒ �| i | t t | ƒ d | ƒ }	 �| i | ƒ }
 ‘t | |	 |
 ƒ } ’| i | ƒ ”d | _ •t ƒ  } –| i | ƒ —| i | | t | ƒ d | ƒ } ˜| i | ƒ } ™t | | | ƒ } ›t  i! d ƒ œ| i" ƒ  �| | i# ƒ  ƒ ž| i$ ƒ  Ÿ| | i# ƒ  ƒ ¡| t% | i | ƒ ¥d | _ ¦t ƒ  } §| i | ƒ ¨| i | | t | ƒ d | ƒ ©| t& | i | ƒ «| i' | ƒ ¬| i | ƒ ®d | _ ¯t ƒ  } °| i | ƒ ±| i | | t | ƒ d | ƒ ³| t& | i | ƒ µ| i' | ƒ ¶| i | ƒ ¸d | _ ¹t ƒ  } º| i | ƒ »| i | | t | ƒ d | ƒ } ¼| i | ƒ } ½t | | | ƒ } ¾| i | ƒ À| i( | d ƒ \ } } Á| t+ | ƒ t d ƒ ƒ Â| | | ƒ d  S(   Ni   s    i   i   i	   i
   i   (,   s   selfs   assertEquals   eqs   assertRaisess   raisess
   failUnlesss   unlesss   openClientStorages   _storages   storages   _caches   _indexs   new_oids   oids   MinPOs   objs   Transactions   ts	   tpc_begins   stores   ZEROs   zodb_pickles   revid1as   tpc_votes   revid1bs   handle_serialss   revid1s
   tpc_finishs   values   revid2as   revid2bs   revid2s   times   sleeps   syncs   is_connecteds   _waits   ClientDisconnecteds   ConflictErrors	   tpc_aborts   loads   datas   revids   zodb_unpickle(   s   selfs   unlesss   storages   oids   revids   raisess   revid2as   revid2bs   eqs   revid1as   revid1bs   objs   datas   revid2s   revid1s   t(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   checkTimeoutProvokingConflicts�sb   $$""$(   s   __name__s
   __module__s   timeouts   checkTimeouts   checkTimeoutOnAborts   checkTimeoutOnAbortNoLocks   checkTimeoutAfterVotes   checkTimeoutProvokingConflicts(    (    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   TimeoutTestsJs   			s	   MSTThreadc      s>   Ät  Z Æe i i Z Èd „  Z Íd „  Z d „  Z RS(   Nc    s2   ÈÉ|  i d | ƒ Ê| |  _ Ëg  |  _ d  S(   Ns   name(   s   selfs   _MSTThread__super_inits   names   testcases   clients(   s   selfs   testcases   name(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   __init__Ès   c  	  sÈ  ÍÎ|  i ƒ  } Ï|  i } Ò|  i } Óx\ t t | i ƒ ƒ DÓ]B } Ô| i	 d | i | ƒ } Õd | | _ Ö| i | ƒ qC WØx2t | i ƒ DØ]} Þx) | DÞ] } ßg  | _ àh  | _ q² Wãt ƒ  } äx! | Dä] } æ| i | ƒ qí Wèx¾ t | i ƒ Dè]ª } éxž | Dé]“ } ë| i ƒ  }
 ì| i i |
 ƒ ít d | | i | | f ƒ }	 ït |	 ƒ }	 ð| i |
 t |	 d | ƒ } ñ| i i t |
 | ƒ ƒ q0WqWôx? | Dô]4 } ö| i | ƒ } ÷| i i t t  | ƒ ƒ qØWúx! | Dú] } ü| i! | ƒ qWþx€ | Dþ]u }  x0 | i D ]" }
 | i" | i i# |
 ƒ ƒ qZWx3 | i i$ ƒ  D] }
 | i" |
 | i j ƒ q–WqDWqŸ Wd  S(   Ns   addrs   C%ds   %s.%s.t%d.o%ds    (%   s   selfs   getNames   tnames   testcases   clientss   ranges   lens   addrs   is   openClientStorages   cs   _MSTThread__names   appends   ntranss   _MSTThread__oidss   _MSTThread__serialss   Transactions   ts	   tpc_begins   nobjs   js   new_oids   oids   MinPOs   datas   zodb_pickles   stores   ZEROs   ss   updates   handle_all_serialss   tpc_votes   Nones
   tpc_finishs
   failUnlesss   has_keys   keys(   s   selfs   cs   is   clientss   ss   js   testcases   ts   tnames   datas   oid(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   runÍsV    	 	
 	
 	 	
 	"$
 	 
 	
 	 	  	c    sE   x8 |  i D]* } 	y 
| i ƒ  Wn n Xq Wd  S(   N(   s   selfs   clientss   cs   close(   s   selfs   c(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   closeclientss    	(   s   __name__s
   __module__s	   threadings   Threads   __init__s   _MSTThread__super_inits   runs   closeclients(    (    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys	   MSTThreadÄs   	9(2   s   oss   syss   times   randoms   sockets   asyncores   tempfiles	   threadings   zLOGs   ZEO.ServerStubs   ZEOs   ZEO.ClientStorages   ClientStorages   ZEO.Exceptionss   ClientDisconnecteds   ZEO.zrpc.marshals
   Marshallers   ZEO.zrpc.errors   DisconnectedErrors	   ZEO.testss   forkers   ZODB.DBs   DBs   ZODB.Transactions   get_transactions   Transactions   ZODB.POSExceptions   ReadOnlyErrors   ConflictErrors   ZODB.tests.StorageTestBases   StorageTestBases   ZODB.tests.MinPOs   MinPOs   zodb_pickles   zodb_unpickles   handle_all_serialss   handle_serialss   ZEROs
   ServerStubs   StorageServers   TestServerStubs   TestClientStorages   DummyDBs   CommonSetupTearDowns   ConnectionTestss	   InvqTestss   ReconnectionTestss   TimeoutTestss   Threads	   MSTThread($   s   ConnectionTestss   Transactions   asyncores   TestClientStorages   TimeoutTestss	   MSTThreads   randoms   DBs   TestServerStubs   forkers   syss   ConflictErrors   get_transactions   StorageTestBases   handle_all_serialss   ReconnectionTestss   DummyDBs   MinPOs   ClientStorages   sockets   ClientDisconnecteds	   threadings   tempfiles   zodb_unpickles   zodb_pickles	   InvqTestss   ZEOs   CommonSetupTearDowns   DisconnectedErrors
   Marshallers   handle_serialss   ReadOnlyErrors   times   zLOGs   ZEROs   os(    (    sA   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/ConnectionTests.pys   ? s>   "¡ÿ [F¾z