-í
Û„?c       s4  d  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
 Z
 d k l Z d k l Z d k l Z l Z l Z l Z l Z l Z l Z l Z l Z l Z l Z d k l Z d k l Z l Z l  Z  l! Z! d f  d „  ƒ  YZ" d	 f  d
 „  ƒ  YZ# d „  Z$ d e i e i e i e i e i e i e i% e i& e i' e i e i e i e i( e i) e  i  e! i! e# f d „  ƒ  YZ* d e* f d „  ƒ  YZ+ d e+ f d „  ƒ  YZ, d e+ f d „  ƒ  YZ- e+ e- g Z. d k/ Z/ e/ i0 o e. i1 e, ƒ n d „  Z2 e3 d j o e i4 d d ƒ n d S(   s'   Test suite for ZEO based on ZODB.tests.N(   s   MinPO(   s   zodb_unpickle(   s   StorageTestBases   BasicStorages   VersionStorages   TransactionalUndoStorages   TransactionalUndoVersionStorages   PackableStorages   Synchronizations   ConflictResolutions   RevisionStorages	   MTStorages   ReadOnlyStorage(   s   ClientStorage(   s   forkers   Caches   CommitLockTestss   ThreadTestss   DummyDBc      s   t  Z d „  Z RS(   Nc    s   d  S(   N(    (   s   selfs   args(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys
   invalidate- s    (   s   __name__s
   __module__s
   invalidate(    (    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   DummyDB, s   s   MiscZEOTestsc      s    t  Z d  Z d „  Z d „  Z RS(   s&   ZEO tests that don't fit in elsewhere.c    s,   t  d d d d ƒ } |  i d | ƒ d  S(   Ns   Xi
   i€   i   s   data(   s   MinPOs   objs   selfs   _dostore(   s   selfs   obj(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkLargeUpdate4 s    c 
   s:  |  i i } t | d d d d ƒ}	 z|  i i ƒ  } t d ƒ } |  i
 | d | ƒ} |	 i | d ƒ \ } } |  i t | ƒ t d ƒ ƒ |  i | | ƒ |  i
 | d t d ƒ d	 | ƒ} x! t d
 ƒ D] } t i d ƒ qÉ W|	 i | d ƒ \ } } |  i t | ƒ t d ƒ d ƒ |  i | | ƒ Wd  |	 i ƒ  Xd  S(   Ns   waiti   s   min_disconnect_pollf0.10000000000000001s   firsts   datas    s   seconds   revidi   s"   Invalidation message was not sent!(   s   selfs   _storages   _addrs   addrs   ClientStorages   storage2s   new_oids   oids   MinPOs   obs   _dostores   revid1s   loads   datas   serials   assertEquals   zodb_unpickles   revid2s   ranges   ns   asyncores   polls   close(
   s   selfs   addrs   datas   oids   revid2s   obs   revid1s   ns   serials   storage2(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkZEOInvalidation8 s&    !  (   s   __name__s
   __module__s   __doc__s   checkLargeUpdates   checkZEOInvalidation(    (    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   MiscZEOTests1 s    	c     s”   x„ t  d ƒ D]v } t i d d ƒ } t i t i t i ƒ }  z8 y |  i	 d | f ƒ Wn t i
 j
 o | Sn XWd |  i ƒ  Xq Wt d ‚ d S(   sÉ   Return a port that is not in use.

    Checks if a port is in use by trying to connect to it.  Assumes it
    is not in use if connect raises an exception.

    Raises RuntimeError after 10 tries.
    i
   i N  i0u  s	   localhostNs   Can't find port(   s   ranges   is   randoms	   randranges   ports   sockets   AF_INETs   SOCK_STREAMs   ss   connects   errors   closes   RuntimeError(   s   ss   is   port(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   get_portN s       s   GenericTestsc      s>   t  Z d  Z d „  Z d „  Z d d „ Z d „  Z d „  Z RS(   s0   Combine tests from various origins in one class.c    sÊ   t  i d t  i d |  i ƒ  ƒ t ƒ  } t i d | f ƒ } t i
 |  i ƒ  | | ƒ \ } } } } | g |  _ | g |  _ | |  _ t | d d d d d d	 d
 d d ƒ|  _ |  i i t ƒ  t ƒ d  S(   Ns   testZEOs
   setUp() %ss    s   1s
   cache_sizei -1s   min_disconnect_pollf0.5s   waiti   s   wait_timeouti<   (   s   zLOGs   LOGs   INFOs   selfs   ids   get_ports   ports   forkers	   ZEOConfigs   zconfs   start_zeo_servers	   getConfigs   zports	   adminaddrs   pids   paths   _pidss   _serverss
   _conf_paths   ClientStorages   _storages
   registerDBs   DummyDBs   None(   s   selfs   zconfs	   adminaddrs   pids   zports   paths   port(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   setUp} s     		c    sz   |  i i ƒ  t i |  i ƒ x |  i D] } t i	 | ƒ q' Wt
 t d ƒ o( x! |  i D] } t i | d ƒ qX Wn d  S(   Ns   waitpidi    (   s   selfs   _storages   closes   oss   removes
   _conf_paths   _serverss   servers   forkers   shutdown_zeo_servers   hasattrs   _pidss   pids   waitpid(   s   selfs   servers   pid(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   tearDown‹ s    
 
 i    c    s8   |  i i } |  i i ƒ  t | d | d d ƒ|  _ d  S(   Ns	   read_onlys   waiti   (   s   selfs   _storages   _addrs   addrs   closes   ClientStorages	   read_only(   s   selfs	   read_onlys   addr(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   open• s    c    s(   t  t d ƒ o t i i |  ƒ n d  S(   Ns   __version__(   s   hasattrs   ZODBs   ReadOnlyStorages   checkWriteMethodss   self(   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkWriteMethodsœ s    c    s9   d |  i i |  i i f } |  i |  i i ƒ  | ƒ d  S(   Ns   %s:%s(   s   selfs   _storages   _server_addrs   keys   assertEquals   sortKey(   s   selfs   key(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkSortKey¦ s    (   s   __name__s
   __module__s   __doc__s   setUps   tearDowns   opens   checkWriteMethodss   checkSortKey(    (    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   GenericTestsc s    		
	
s   FileStorageTestsc      s   t  Z d  Z d Z d „  Z RS(   s!   Test ZEO backed by a FileStorage.i   c    s   t  i ƒ  } |  _ d | Sd  S(   NsG           <filestorage 1>
        path %s
        </filestorage>
        (   s   tempfiles   mktemps   filenames   selfs   _FileStorageTests__fs_base(   s   selfs   filename(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys	   getConfig¯ s    (   s   __name__s
   __module__s   __doc__s   levels	   getConfig(    (    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   FileStorageTests« s    s   BDBTestsc      s   t  Z d  Z d Z d „  Z RS(   s&   ZEO backed by a Berkeley full storage.i   c    s   t  i ƒ  |  _ d |  i Sd  S(   NsI           <fullstorage 1>
        envdir %s
        </fullstorage>
        (   s   tempfiles   mktemps   selfs   _envdir(   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys	   getConfig» s    (   s   __name__s
   __module__s   __doc__s   levels	   getConfig(    (    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   BDBTests· s    s   MappingStorageTestsc      sô  t  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d  „  Z" d! „  Z# d" „  Z$ d# „  Z% d$ „  Z& d% „  Z' d& „  Z( d' „  Z) d( „  Z* d) „  Z+ d* „  Z, d+ „  Z- d, „  Z. d- „  Z/ d. „  Z0 d/ „  Z1 d0 „  Z2 d1 „  Z3 d2 „  Z4 d3 „  Z5 d4 „  Z6 d5 „  Z7 d6 „  Z8 RS(7   s    ZEO backed by a Mapping storage.c    s   d Sd  S(   Ns   <mappingstorage 1/>(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys	   getConfigÆ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkVersionsË s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkVersionedStoreAndLoadÌ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkVersionedLoadErrorsÍ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkVersionLockÎ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkVersionEmptyÏ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkUndoUnresolvableÐ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkUndoInvalidationÑ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkUndoInVersionÒ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkUndoCreationBranch2Ó s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkUndoCreationBranch1Ô s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkUndoConflictResolutionÕ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkUndoCommitVersionÖ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkUndoAbortVersion× s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackUndoLogØ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkUndoLogMetadataÙ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkTwoObjectUndoAtOnceÚ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkTwoObjectUndoAgainÛ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkTwoObjectUndoÜ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys7   checkTransactionalUndoAfterPackWithObjectUnlinkFromRootÝ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkTransactionalUndoAfterPackÞ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkSimpleTransactionalUndoß s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkReadMethodsà s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackAfterUndoDeletioná s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackAfterUndoManyTimesâ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackVersionsã s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackUnlinkedFromRootä s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackOnlyOneObjectå s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackJustOldRevisionsæ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackEmptyStorageç s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackAllRevisionsè s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackVersionsInPasté s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkPackVersionReachableê s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkNotUndoableë s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys&   checkNewSerialOnCommitVersionToVersionì s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkModifyAfterAbortVersioní s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkLoadSerialî s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys#   checkCreateObjectInVersionWithAbortï s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkCommitVersionSerialnoð s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkCommitVersionInvalidationñ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkCommitToOtherVersionò s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkCommitToNonVersionó s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkCommitLockUndoFinishô s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkCommitLockUndoCloseõ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkCommitLockUndoAbortö s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys#   checkCommitEmptyVersionInvalidation÷ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkCreationUndoneGetSerialø s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkAbortVersionSerialnoù s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkAbortVersionInvalidationú s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkAbortVersionErrorsû s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkAbortVersionü s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys"   checkAbortOneVersionCommitTheOtherý s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   checkResolveþ s    c    s   d  S(   N(    (   s   self(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   check4ExtStorageThreadÿ s    (9   s   __name__s
   __module__s   __doc__s	   getConfigs   checkVersionss   checkVersionedStoreAndLoads   checkVersionedLoadErrorss   checkVersionLocks   checkVersionEmptys   checkUndoUnresolvables   checkUndoInvalidations   checkUndoInVersions   checkUndoCreationBranch2s   checkUndoCreationBranch1s   checkUndoConflictResolutions   checkUndoCommitVersions   checkUndoAbortVersions   checkPackUndoLogs   checkUndoLogMetadatas   checkTwoObjectUndoAtOnces   checkTwoObjectUndoAgains   checkTwoObjectUndos7   checkTransactionalUndoAfterPackWithObjectUnlinkFromRoots   checkTransactionalUndoAfterPacks   checkSimpleTransactionalUndos   checkReadMethodss   checkPackAfterUndoDeletions   checkPackAfterUndoManyTimess   checkPackVersionss   checkPackUnlinkedFromRoots   checkPackOnlyOneObjects   checkPackJustOldRevisionss   checkPackEmptyStorages   checkPackAllRevisionss   checkPackVersionsInPasts   checkPackVersionReachables   checkNotUndoables&   checkNewSerialOnCommitVersionToVersions   checkModifyAfterAbortVersions   checkLoadSerials#   checkCreateObjectInVersionWithAborts   checkCommitVersionSerialnos   checkCommitVersionInvalidations   checkCommitToOtherVersions   checkCommitToNonVersions   checkCommitLockUndoFinishs   checkCommitLockUndoCloses   checkCommitLockUndoAborts#   checkCommitEmptyVersionInvalidations   checkCreationUndoneGetSerials   checkAbortVersionSerialnos   checkAbortVersionInvalidations   checkAbortVersionErrorss   checkAbortVersions"   checkAbortOneVersionCommitTheOthers   checkResolves   check4ExtStorageThread(    (    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   MappingStorageTestsÃ sn    																																																					c     s]   d  k  } | i d d ƒ t i ƒ  } x- t D]% } t i | d ƒ }  | i	 |  ƒ q, W| Sd  S(   Ns   ignores   mktemps   check(
   s   warningss   filterwarningss   unittests	   TestSuites   suites   test_classess   klasss	   makeSuites   subs   addTest(   s   subs   warningss   suites   klass(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys
   test_suites    	 s   __main__s   defaultTests
   test_suite(5   s   __doc__s   oss   syss   times   randoms   sockets   asyncores   tempfiles   unittests   zLOGs   ZODBs   ZODB.tests.MinPOs   MinPOs   ZODB.tests.StorageTestBases   zodb_unpickles
   ZODB.testss   StorageTestBases   BasicStorages   VersionStorages   TransactionalUndoStorages   TransactionalUndoVersionStorages   PackableStorages   Synchronizations   ConflictResolutions   RevisionStorages	   MTStorages   ReadOnlyStorages   ZEO.ClientStorages   ClientStorages	   ZEO.testss   forkers   Caches   CommitLockTestss   ThreadTestss   DummyDBs   MiscZEOTestss   get_ports   SynchronizedStorages   ConflictResolvingStorages!   ConflictResolvingTransUndoStorages   StorageWithCaches   TransUndoStorageWithCaches   GenericTestss   FileStorageTestss   BDBTestss   MappingStorageTestss   test_classess
   BDBStorages   is_availables   appends
   test_suites   __name__s   main(&   s   GenericTestss   Caches   asyncores   BDBTestss   CommitLockTestss   VersionStorages   unittests   randoms   BasicStorages   forkers   syss   PackableStorages   StorageTestBases   DummyDBs
   test_suites   FileStorageTestss   ConflictResolutions   MappingStorageTestss   RevisionStorages   MinPOs   ClientStorages   TransactionalUndoStorages   sockets   ReadOnlyStorages   tempfiles   oss   ThreadTestss	   MTStorages   TransactionalUndoVersionStorages   ZODBs   Synchronizations   test_classess   get_ports   times   zLOGs   zodb_unpickles   MiscZEOTestss
   BDBStorage(    (    s9   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testZEO.pys   ? s:   										I	vH>	
	