-
?c       sI    d  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   d	 e f d
     YZ i d e f d     YZ p d e f d     YZ w e e g Z y d   Z  e d j o  e i d d  n d S(   s   Test suite for AuthZEO.N(   s   LoopCallback(   s   ClientStorage(   s   ClientDisconnected(   s   StorageServer(   s   CommonSetupTearDown(   s   FileStorage(   s   removefss   AuthTestc      s     t  Z ! e i Z " e i Z # e i Z % e	 Z
 ' d   Z 1 d   Z 5 d   Z 8 d   Z ? d   Z F d   Z S d   Z [ d   Z RS(	   Nc    s   ' ( t  i   |  _ ) |  i o" * |  i |  i |  i  |  _ n , |  i |  i  |  _ - |  i i d d  . |  i i   / |  i	   d  S(   Ns   foos   bar(
   s   tempfiles   mktemps   selfs   pwfiles   realms   dbclasss   pwdbs   add_users   saves   _AuthTest__super_setUp(   s   self(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   setUp' s   "c    s'   1 2 |  i   3 t i |  i  d  S(   N(   s   selfs   _AuthTest__super_tearDowns   oss   removes   pwfile(   s   self(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   tearDown1 s   c    s   5 6 d Sd  S(   Ns   <mappingstorage 1/>(    (   s   selfs   paths   creates	   read_only(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys	   getConfig5 s   c    sP   8 9 |  i | |  } : |  i | _ ; |  i | _ < |  i	 | _
 = | Sd  S(   N(   s   selfs    _AuthTest__super_getServerConfigs   addrs   ro_svrs   zconfs   protocols   authentication_protocols   pwfiles   authentication_databases   realms   authentication_realm(   s   selfs   addrs   ro_svrs   zconf(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   getServerConfig8 s
   c    s_   ? @ xB t  d  D@ ]1 } A |  i i o B d  Sn C t i d  q WD |  i d  d  S(   Ni   f0.10000000000000001s,   Timed out waiting for client to authenticate(   s   ranges   is   selfs   _storages   test_connections   times   sleeps   fail(   s   selfs   i(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   wait? s    	c  	  s   F I |  i d d d d J d d d |  i  |  _ K |  i   M |  i |  i i  N |  i i i   O |  i |  i i    Q |  i i	   d  S(   Ns   waiti    s   usernames   foos   passwords   bars   realm(
   s   selfs   openClientStorages   realms   _storages   waits   assert_s   _connections   polls   is_connecteds   versions(   s   self(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   testOKF s   c  	  s]   S T |  i d d d d U d d V d |  i  |  _ W |  i   Y |  i |  i i  d  S(   Ns   waiti    s   usernames   foos   passwords   noogies   realm(   s   selfs   openClientStorages   realms   _storages   waits   failIfs   _connection(   s   self(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   testNOKS s
   	c  	  s   [ ` |  i d d d d a d d d |  i  |  _ b |  i   c |  i i   e t |  i i _ g |  i	 t
 |  i i  d  S(   Ns   waiti    s   usernames   foos   passwords   bars   realm(   s   selfs   openClientStorages   realms   _storages   waits   versionss   Nones   _connections'   _SizedMessageAsyncConnection__hmac_sends   assertRaisess   ClientDisconnected(   s   self(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   testUnauthenticatedMessage[ s   (   s   __name__s
   __module__s   CommonSetupTearDowns   getServerConfigs    _AuthTest__super_getServerConfigs   setUps   _AuthTest__super_setUps   tearDowns   _AuthTest__super_tearDowns   Nones   realms	   getConfigs   waits   testOKs   testNOKs   testUnauthenticatedMessage(    (    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   AuthTest  s   		
s   PlainTextAuthc      sD   i t  Z j d  k Z k d Z l d Z m e i i i Z	 n d Z
 RS(   Ns	   plaintexts
   authdb.shas   Plaintext Realm(   s   __name__s
   __module__s   ZEO.tests.auth_plaintexts   ZEOs   protocols   databases   testss   auth_plaintexts   Databases   dbclasss   realm(    (    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   PlainTextAuthi s
   			s
   DigestAuthc      sD   p t  Z q d  k Z r d Z s d Z t e i i i Z	 u d Z
 RS(   Ns   digests   authdb.digests   Digest Realm(   s   __name__s
   __module__s   ZEO.auth.auth_digests   ZEOs   protocols   databases   auths   auth_digests   DigestDatabases   dbclasss   realm(    (    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys
   DigestAuthp s
   			c     sV   y z t  i   }  { x3 t D{ ]( } | t  i |  } } |  i |  q W~ |  Sd  S(   N(   s   unittests	   TestSuites   suites   test_classess   klasss	   makeSuites   subs   addTest(   s   suites   subs   klass(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys
   test_suitey s   
 	s   __main__s   defaultTests
   test_suite(   s   __doc__s   oss   tempfiles   times   unittests   zLOGs   ThreadedAsyncs   LoopCallbacks   ZEO.ClientStorages   ClientStorages   ZEO.Exceptionss   ClientDisconnecteds   ZEO.StorageServers   StorageServers   ZEO.tests.ConnectionTestss   CommonSetupTearDowns   ZODB.FileStorages   FileStorages   ZODB.tests.StorageTestBases   removefss   AuthTests   PlainTextAuths
   DigestAuths   test_classess
   test_suites   __name__s   main(   s   ClientStorages   PlainTextAuths   ClientDisconnecteds   LoopCallbacks   tempfiles   FileStorages   CommonSetupTearDowns
   DigestAuths   removefss
   test_suites   test_classess   times   zLOGs   AuthTests   oss   unittests   StorageServer(    (    s:   /usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys   ? s&   I