- ?csIdZdkZdkZdkZdkZdkZdklZdkl Z dk l Z dk l Z dklZdklZdklZ d efd YZid efd YZpd efdYZweegZydZedjoeiddndS(sTest suite for AuthZEO.N(s LoopCallback(s ClientStorage(sClientDisconnected(s StorageServer(sCommonSetupTearDown(s FileStorage(sremovefssAuthTestcs tZ!eiZ"eiZ#eiZ%e Z 'dZ1dZ5dZ 8dZ?dZ FdZ SdZ[dZRS( 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'12|i3ti|idS(N(sselfs_AuthTest__super_tearDownsossremovespwfile(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pystearDown1s cs56dSdS(Ns((sselfspathscreates read_only((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pys getConfig5scsP89|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 cs_?@xBtdD@]1}A|iio BdSnCtidqWD|iddS(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 sFI|iddddJddd|i|_K|iM|i|iiN|iiiO|i|iiQ|ii dS(Nswaitisusernamesfoospasswordsbarsrealm( sselfsopenClientStoragesrealms_storageswaitsassert_s _connectionspolls is_connectedsversions(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pystestOKFs c s]ST|iddddUddVd|i|_W|iY|i|iidS(Nswaitisusernamesfoospasswordsnoogiesrealm(sselfsopenClientStoragesrealms_storageswaitsfailIfs _connection(sself((s:/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testAuth.pystestNOKSs   c s[`|iddddaddd|i|_b|ic|iiet|ii_g|i t |iidS(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 PlainTextAuthcsDitZjdkZkdZldZmeiiiZ ndZ 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 DigestAuthcsDptZqdkZrdZsdZteiiiZ udZ 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    csVyzti}{x3tD{](}|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