-ν ./θ?csdZdkZdkZdkZdkZdkZdklZdkl Z dk l Z dk l Z dklZdklZdklZd klZd efd „ƒYZd efd „ƒYZdefd„ƒYZeegZd„ZedjoeiddƒndS(sTest suite for AuthZEO.N(s LoopCallback(s zeopasswd(s ClientStorage(sClientDisconnected(s StorageServer(sCommonSetupTearDown(s FileStorage(sremovefssAuthTestcsztZeiZeiZeiZe Z d„Zd„Z d„Zd„Z d„Zd„Z d„Zd„Zd „ZRS( Ncs…tiƒ|_|io|i|i|iƒ|_n|i|iƒ|_|iiddƒ|iiƒ|i ƒ|i ƒdS(Nsfoosbar( stempfilesmktempsselfspwfilesrealmsdbclassspwdbsadd_userssaves_checkZEOpasswds_AuthTest__super_setUp(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pyssetUp(s   csŸd|id|ig}|idjoEdkl}ti|ddg|ƒti|ddg|ƒn/ti|ddgƒti|ddgƒdS(Ns-fs-ps plaintext(sDatabases-dsfoosbar(sselfspwfilesprotocolsargss ZEO.auth.basesDatabases zeopasswdsmain(sselfsargssDatabase((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys_checkZEOpasswd3s cs|iƒti|iƒdS(N(sselfs_AuthTest__super_tearDownsossremovespwfile(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pystearDown=s csdSdS(Ns((sselfspathscreates read_only((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys getConfigAscs>|i||ƒ}|i|_|i|_|i |_ |SdS(N( sselfs _AuthTest__super_getServerConfigsaddrsro_svrszconfsprotocolsauthentication_protocolspwfilesauthentication_databasesrealmsauthentication_realm(sselfsaddrsro_svrszconf((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pysgetServerConfigDs    csJx6tdƒD](}|iiodSntidƒq W|idƒdS(Nif0.10000000000000001s,Timed out waiting for client to authenticate(srangesisselfs_storagestest_connectionstimessleepsfail(sselfsi((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pyswaitKs   c s~|iddddddd|iƒ|_|iƒ|i|iiƒ|iiiƒ|i|iiƒƒ|ii ƒdS(Nswaitisusernamesfoospasswordsbarsrealm( sselfsopenClientStoragesrealms_storageswaitsassert_s _connectionspolls is_connectedsversions(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pystestOKRs c sK|iddddddd|iƒ|_|iƒ|i|iiƒdS(Nswaitisusernamesfoospasswordsnoogiesrealm(sselfsopenClientStoragesrealms_storageswaitsfailIfs _connection(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pystestNOK_s  c sj|iddddddd|iƒ|_|iƒ|iiƒt|ii_|i t |iiƒdS(Nswaitisusernamesfoospasswordsbarsrealm( sselfsopenClientStoragesrealms_storageswaitsversionssNones _connections'_SizedMessageAsyncConnection__hmac_sends assertRaisessClientDisconnected(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pystestUnauthenticatedMessagegs   (s__name__s __module__sCommonSetupTearDownsgetServerConfigs _AuthTest__super_getServerConfigssetUps_AuthTest__super_setUpstearDowns_AuthTest__super_tearDownsNonesrealms_checkZEOpasswds getConfigswaitstestOKstestNOKstestUnauthenticatedMessage(((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pysAuthTest!s        s PlainTextAuthcs2tZdkZdZdZeiiiZ dZ RS(Ns plaintexts authdb.shasPlaintext Realm( s__name__s __module__sZEO.tests.auth_plaintextsZEOsprotocolsdatabasestestssauth_plaintextsDatabasesdbclasssrealm(((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys PlainTextAuthus  s DigestAuthcs2tZdkZdZdZeiiiZ dZ RS(Nsdigests authdb.digests Digest Realm( s__name__s __module__sZEO.auth.auth_digestsZEOsprotocolsdatabasesauths auth_digestsDigestDatabasesdbclasssrealm(((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys DigestAuth|s  csAtiƒ}x*tD]"}ti|ƒ}|i|ƒqW|SdS(N(sunittests TestSuitessuites test_classessklasss makeSuitessubsaddTest(ssuitessubsklass((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys test_suite…s  s__main__s defaultTests test_suite(s__doc__sosstempfilestimesunittestszLOGs ThreadedAsyncs LoopCallbacksZEOs zeopasswdsZEO.ClientStorages ClientStoragesZEO.ExceptionssClientDisconnectedsZEO.StorageServers StorageServersZEO.tests.ConnectionTestssCommonSetupTearDownsZODB.FileStorages FileStoragesZODB.tests.StorageTestBasesremovefssAuthTests PlainTextAuths DigestAuths test_classess test_suites__name__smain(s ClientStorages PlainTextAuths FileStoragesClientDisconnecteds LoopCallbackstempfiles zeopasswdsunittests DigestAuthsremovefss test_suites test_classesstimeszLOGsAuthTestsossCommonSetupTearDowns StorageServer((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys?s(             T