-í
Û„?c       s
  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 d e f d „  ƒ  YZ d e f d „  ƒ  YZ e e g Z 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      sq   t  Z e i Z e i Z e i Z e	 Z
 d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z 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   |  i ƒ  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   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    s>   |  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    sJ   x6 t  d ƒ D]( } |  i i o d  Sn t i d ƒ q W|  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~   |  i d d d d d d d |  i ƒ |  _ |  i ƒ  |  i |  i i ƒ |  i i i ƒ  |  i |  i i ƒ  ƒ |  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  	  sK   |  i d d d d d d d |  i ƒ |  _ |  i ƒ  |  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  	  sj   |  i d d d d d d d |  i ƒ |  _ |  i ƒ  |  i i ƒ  t |  i i _ |  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      s2   t  Z d  k Z d Z d Z e i i i Z	 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      s2   t  Z d  k Z d Z d Z e i i i Z	 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     sA   t  i ƒ  }  x* 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	