Ńň D‘Jc@s×ddkZdeifd„ƒYZdeifd„ƒYZdeifd„ƒYZdeifd „ƒYZd eifd „ƒYZd dd „ƒYZd„Zd„Z ddd„ƒYZ e ƒZ d„Z dS(i˙˙˙˙NtTestSQLAuthenticatorPlugincBsSeZd„Zd„Zdd„Zd„Zd„Zd„Zd„Z d„Z RS( cCsddkl}|S(Ni˙˙˙˙(tSQLAuthenticatorPlugin(trepoze.who.plugins.sqlR(tselfR((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt_getTargetClassscOs|iƒ||Ž}|S(N(R(Rtargtkwtplugin((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt_makeOne scCs2h}d|d<|dj o|i|ƒn|S(Niis wsgi.version(ii(tNonetupdate(RRtenviron((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt _makeEnviron s   cCsCddkl}ddkl}|iƒ}|||dtƒdS(Ni˙˙˙˙(t verifyClass(tIAuthenticatort tentative(tzope.interface.verifyR trepoze.who.interfacesRRtTrue(RR Rtklass((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_implementss cCstgƒ}|id|tƒ}|iƒ}hdd6dd6}|i||ƒ}|i|dƒ|i|idƒ|i|it ƒdS(Nsselect foo from bartfootlogintbartpassword( tDummyConnectionFactoryRtcompare_succeedR t authenticatet assertEqualR tquerytclosedR(Rt dummy_factoryRR tidentitytresult((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_authenticate_noresultss    cCs–tddggƒ}|id|tƒ}|iƒ}hdd6dd6}|i||ƒ}|i|dƒ|i|idƒ|i|it ƒdS(NtuseridRsselect foo from bartfredRR( RRt compare_failR RRR RRR(RRRR R R!((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_authenticate_comparefail%s   cCs–tddggƒ}|id|tƒ}|iƒ}hdd6dd6}|i||ƒ}|i|dƒ|i|idƒ|i|itƒdS(NR#Rsselect foo from barR$RR( RRRR RRRRR(RRRR R R!((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt test_authenticate_comparesuccess0s   cCsˆtddggƒ}|id|tƒ}|iƒ}h}|i||ƒ}|i|dƒ|i|idƒ|i|it ƒdS(NR#Rsselect foo from bar( RRRR RRR RRtFalse(RRRR R R!((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_authenticate_nologin;s   N( t__name__t __module__RRR R RR"R&R'R)(((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRs     tTestDefaultPasswordComparecBsAeZd„Zdd„Zd„Zd„Zd„Zd„ZRS(cCsddkl}|S(Ni˙˙˙˙(tdefault_password_compare(RR-(RR-((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt_getFUTHsRcCsJyddkl}Wn#tj oddkl}nX||ƒiƒS(Ni˙˙˙˙(tsha1(tnew(thashlibR/t ImportErrortshaR0t hexdigest(RtclearR/((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt_get_sha_hex_digestLs cCs?d|iƒ}|iƒ}|d|ƒ}|i|tƒdS(Ns{SHA}R(R6R.RR(RtstoredtcompareR!((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_shaprefix_successSs cCs?d|iƒ}|iƒ}|d|ƒ}|i|tƒdS(Ns{SHA}t notpassword(R6R.RR((RR7R8R!((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_shaprefix_failYs cCs5d}|iƒ}|d|ƒ}|i|tƒdS(NR(R.RR(RR7R8R!((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_noprefix_success_s cCs5d}|iƒ}|d|ƒ}|i|tƒdS(NRR:(R.RR((RR7R8R!((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_noprefix_failes (R*R+R.R6R9R;R<R=(((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyR,Fs      tTestSQLMetadataProviderPlugincBs,eZd„Zd„Zd„Zd„ZRS(cCsddkl}|S(Ni˙˙˙˙(tSQLMetadataProviderPlugin(RR?(RR?((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRmscOs|iƒ}|||ŽS(N(R(RRRR((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRqs cCsCddkl}ddkl}|iƒ}|||dtƒdS(Ni˙˙˙˙(R (tIMetadataProviderR(RR RR@RR(RR R@R((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRus cCsźtdddggƒ}d„}|idd||ƒ}h}hdd6}|i||ƒ|i|itƒ|i|ddddggƒ|i|idƒ|i|idƒƒdS( NiiicSs|S(N((tresults((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt dummy_filter}stmdsselect foo from barsrepoze.who.useridt__userid( RRt add_metadataRRRRtfailIfthas_key(RRRBRR R ((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_add_metadata{s    (R*R+RRRRH(((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyR>ks   tTestMakeSQLAuthenticatorPlugincBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsddkl}|S(Ni˙˙˙˙(tmake_authenticator_plugin(RRJ(RRJ((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyR.‹scCs)|iƒ}|it|dddƒdS(NtconnR8(R.t assertRaisest ValueErrorR (Rtf((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt test_noquerys cCs)|iƒ}|it|dddƒdS(Nt statementR8(R.RLRMR (RRN((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_no_connfactory“s cCs)|iƒ}|it|dddƒdS(NRPsdoes.not:exist(R.RLRMR (RRN((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_bad_connfactory—s cCsk|iƒ}|dddƒ}|i|idƒ|i|itƒddkl}|i|i|ƒdS(NRPs8repoze.who.plugins.tests.test_sql:make_dummy_connfactoryi˙˙˙˙(R-( R.R RRt conn_factorytDummyConnFactoryRR-t compare_fn(RRNRR-((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_connfactory_specd›s  cCs[|iƒ}|dddƒ}|i|idƒ|i|itƒ|i|itƒdS(NRPs8repoze.who.plugins.tests.test_sql:make_dummy_connfactory(R.RRRSRTRUtmake_dummy_connfactory(RRNR((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_comparefunc_specdĽs  (R*R+R.RORQRRRVRX(((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRI‰s      t!TestMakeSQLMetadataProviderPlugincBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsddkl}|S(Ni˙˙˙˙(tmake_metadata_plugin(RRZ(RRZ((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyR.°scCs |iƒ}|it|ƒdS(N(R.RLRM(RRN((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt test_no_name´s cCs)|iƒ}|it|dddƒdS(Ntname(R.RLRMR (RRN((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt test_no_query¸s cCs)|iƒ}|it|dddƒdS(NR\RP(R.RLRMR (RRN((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRQźs cCs,|iƒ}|it|ddddƒdS(NR\RPsdoes.not:exist(R.RLRMR (RRN((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRRŔs cCsq|iƒ}|ddddƒ}|i|idƒ|i|idƒ|i|itƒ|i|idƒdS(NR\RPs8repoze.who.plugins.tests.test_sql:make_dummy_connfactory(R.R RR\RRSRTtfilter(RRNR((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRVĹs   cCsq|iƒ}|ddddƒ}|i|idƒ|i|idƒ|i|itƒ|i|itƒdS(NR\RPs8repoze.who.plugins.tests.test_sql:make_dummy_connfactory(R.RR\RRSRTR^RW(RRNR((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyttest_comparefn_specdĎs   ( R*R+R.R[R]RQRRRVR_(((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRYŽs      RcBsSeZeZdZd„Zd„Zd„Zd„Z d„Z d„Z d„Z RS(cCs ||_dS(N(RA(RRA((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt__init__ŢscCs|S(N((R((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyt__call__áscCs|S(N((R((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pytcursoräscGs||_||_dS(N(Rtbindargs(RRR((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pytexecuteçs cCs|iS(N(RA(R((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pytfetchallëscCs|io |idSgS(Ni(RA(R((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pytfetchoneîs  cCs t|_dS(N(RR(R((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pytcloseósN( R*R+R(RR RR`RaRbRdReRfRg(((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRÚs      cCstS(N(R((t cleartextR7((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyR%öscCstS(N(R(RhR7((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRůst_DummyConnFactorycBseZRS((R*R+(((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRiüscKstS(N(RT(R((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyRWs((( tunittesttTestCaseRR,R>RIRYRR%RRiRTRW(((sE/usr/lib/python2.6/site-packages/repoze/who/plugins/tests/test_sql.pyts C%%,