-í Û„?cs dZdkZdkZdkZdkZdkZdklZdkl Z dk l Z dk l Z dklZdklZdklZd efd „ƒYZd efd „ƒYZd efd„ƒYZeegZd„ZedjoeiddƒndS(sTest suite for AuthZEO.N(s LoopCallback(s ClientStorage(sClientDisconnected(s StorageServer(sCommonSetupTearDown(s FileStorage(sremovefssAuthTestcsqtZeiZeiZeiZe Z d„Zd„Zd„Z d„Zd„Z d„Z d„Zd„ZRS( Ncs{tiƒ|_|io|i|i|iƒ|_n|i|iƒ|_|iiddƒ|iiƒ|i ƒdS(Nsfoosbar( stempfilesmktempsselfspwfilesrealmsdbclassspwdbsadd_userssaves_AuthTest__super_setUp(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pyssetUp's  cs|iƒti|iƒdS(N(sselfs_AuthTest__super_tearDownsossremovespwfile(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pystearDown1s csdSdS(Ns((sselfspathscreates read_only((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys getConfig5scs>|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.pysgetServerConfig8s    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.pyswait?s   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.pystestOKFs c sK|iddddddd|iƒ|_|iƒ|i|iiƒdS(Nswaitisusernamesfoospasswordsnoogiesrealm(sselfsopenClientStoragesrealms_storageswaitsfailIfs _connection(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pystestNOKSs  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.pystestUnauthenticatedMessage[s   (s__name__s __module__sCommonSetupTearDownsgetServerConfigs _AuthTest__super_getServerConfigssetUps_AuthTest__super_setUpstearDowns_AuthTest__super_tearDownsNonesrealms 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 PlainTextAuthis  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 DigestAuthps  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_suiteys  s__main__s defaultTests test_suite(s__doc__sosstempfilestimesunittestszLOGs ThreadedAsyncs LoopCallbacksZEO.ClientStorages ClientStoragesZEO.ExceptionssClientDisconnectedsZEO.StorageServers StorageServersZEO.tests.ConnectionTestssCommonSetupTearDownsZODB.FileStorages FileStoragesZODB.tests.StorageTestBasesremovefssAuthTests PlainTextAuths DigestAuths test_classess test_suites__name__smain(s ClientStorages PlainTextAuthsClientDisconnecteds LoopCallbackstempfiles FileStoragesCommonSetupTearDowns DigestAuthsremovefss test_suites test_classesstimeszLOGsAuthTestsossunittests StorageServer((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys?s&            I