Ñò fôñJc@s¶ddkZdeifd„ƒYZddd„ƒYZdZdZdZd Zd Zd Z d Z d Z dZ dZ dZdZdeifd„ƒYZdZddd„ƒYZdS(iÿÿÿÿNt TestWhoConfigcBs¶eZd„Zdd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsddkl}|S(Niÿÿÿÿ(t WhoConfig(trepoze.who.configR(tselfR((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt_getTargetClassst/cOs|iƒ|||ŽS(N(R(Rtheretargstkw((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt_makeOne scCs5ddkl}|itƒp|t|ƒntS(Niÿÿÿÿ(tclassImplements(tzope.interfaceR t implementedByt DummyPlugin(RtifaceR ((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt_getDummyPluginClass scCsÆ|iƒ}|i|idƒ|i|idƒ|i|idƒ|it|iƒdƒ|it|iƒdƒ|it|i ƒdƒ|it|i ƒdƒ|it|i ƒdƒdS(Nt REMOTE_USERi( R t assertEqualtrequest_classifiertNonetchallenge_decidertremote_user_keytlentpluginst identifierstauthenticatorst challengerst mdproviders(Rtconfig((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_defaults_before_parses cCsÓ|iƒ}|idƒ|i|idƒ|i|idƒ|i|idƒ|it|iƒdƒ|it|i ƒdƒ|it|i ƒdƒ|it|i ƒdƒ|it|i ƒdƒdS(NtRi( R tparseRRRRRRRRRRR(RR((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_empty_strings  cCsæddkl}|iƒ}|i|ƒƒ|i|idƒ|i|idƒ|i|idƒ|it|i ƒdƒ|it|i ƒdƒ|it|i ƒdƒ|it|i ƒdƒ|it|i ƒdƒdS(Niÿÿÿÿ(tStringIORi(R!R RRRRRRRRRRRR(RR!R((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_empty_file)s cCs‰|iƒ}|itƒ|it|iƒdƒ|it|idtƒƒ|id}|it|tƒƒ|i|i dƒdS(Nitfootbartqux( R Rt PLUGINS_ONLYRRRt failUnlesst isinstanceR t credentials(RRR$((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_plugins6s    cCso|iƒ}|idƒ|i|idƒ|i|idƒ|i|idƒ|it|iƒdƒdS(Ns [general]Ri( R RRRRRRRR(RR((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_general_empty@s   cCsÃddkl}ddkl}d||fd„ƒY}|i|ƒ}|iƒ}|itƒ|it|i |ƒƒ|it|i |ƒƒ|i |i dƒ|i t |iƒdƒdS(Niÿÿÿÿ(tIRequestClassifier(tIChallengeDecidertIDummycBseZRS((t__name__t __module__(((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyR.KstANOTHER_REMOTE_USERi(trepoze.who.interfacesR,R-RR Rt GENERAL_ONLYR'R(RRRRRR(RR,R-R.t PLUGIN_CLASSR((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_general_onlyHs  cCs—ddkl}ddkl}d||fd„ƒY}|i|ƒ}|iƒ}|itƒ|it|i |ƒƒ|it|i |ƒƒdS(Niÿÿÿÿ(R,(R-R.cBseZRS((R/R0(((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyR.Xs( R2R,R-RR RtGENERAL_WITH_PLUGINSR'R(RR(RR,R-R.R4R((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_general_with_pluginsUs  cCsûddkl}|i|ƒ}|iƒ}|itƒ|i}|it|ƒdƒ|\}}|i|ddƒ|i t |d|ƒƒ|it|di ƒdƒ|i|di |dƒ|i|ddƒ|i t |d|ƒƒdS(Niÿÿÿÿ(t IIdentifieriis(repoze.who.tests.test_config:DummyPluginitklass1( R2R8RR RtIDENTIFIERS_ONLYRRRR'R(tclassifications(RR8R4RRtfirsttsecond((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_identifiers_only`s    cCsûddkl}|i|ƒ}|iƒ}|itƒ|i}|it|ƒdƒ|\}}|i|ddƒ|i t |d|ƒƒ|it|di ƒdƒ|i|di |dƒ|i|ddƒ|i t |d|ƒƒdS( Niÿÿÿÿ(R8iiR#iR9R$( R2R8RR RtIDENTIFIERS_WITH_PLUGINSRRRR'R(R;(RR8R4RRR<R=((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt#test_parse_identifiers_with_pluginsos    cCsûddkl}|i|ƒ}|iƒ}|itƒ|i}|it|ƒdƒ|\}}|i|ddƒ|i t |d|ƒƒ|it|di ƒdƒ|i|di |dƒ|i|ddƒ|i t |d|ƒƒdS(Niÿÿÿÿ(tIAuthenticatoriis(repoze.who.tests.test_config:DummyPluginiR9( R2RARR RtAUTHENTICATORS_ONLYRRRR'R(R;(RRAR4RRR<R=((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_authenticators_only~s    cCsûddkl}|i|ƒ}|iƒ}|itƒ|i}|it|ƒdƒ|\}}|i|ddƒ|i t |d|ƒƒ|it|di ƒdƒ|i|di |dƒ|i|ddƒ|i t |d|ƒƒdS( Niÿÿÿÿ(RAiiR#iR9R$( R2RARR RtAUTHENTICATORS_WITH_PLUGINSRRRR'R(R;(RRAR4RRR<R=((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt&test_parse_authenticators_with_pluginss    cCsûddkl}|i|ƒ}|iƒ}|itƒ|i}|it|ƒdƒ|\}}|i|ddƒ|i t |d|ƒƒ|it|di ƒdƒ|i|di |dƒ|i|ddƒ|i t |d|ƒƒdS(Niÿÿÿÿ(t IChallengeriis(repoze.who.tests.test_config:DummyPluginiR9( R2RFRR RtCHALLENGERS_ONLYRRRR'R(R;(RRFR4RRR<R=((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_challengers_onlyœs    cCsûddkl}|i|ƒ}|iƒ}|itƒ|i}|it|ƒdƒ|\}}|i|ddƒ|i t |d|ƒƒ|it|di ƒdƒ|i|di |dƒ|i|ddƒ|i t |d|ƒƒdS( Niÿÿÿÿ(RFiiR#iR9R$( R2RFRR RtCHALLENGERS_WITH_PLUGINSRRRR'R(R;(RRFR4RRR<R=((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt#test_parse_challengers_with_plugins«s    cCsûddkl}|i|ƒ}|iƒ}|itƒ|i}|it|ƒdƒ|\}}|i|ddƒ|i t |d|ƒƒ|it|di ƒdƒ|i|di |dƒ|i|ddƒ|i t |d|ƒƒdS(Niÿÿÿÿ(tIMetadataProvideriis(repoze.who.tests.test_config:DummyPluginiR9( R2RKRR RtMDPROVIDERS_ONLYRRRR'R(R;(RRKR4RRR<R=((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_mdproviders_onlyºs    cCsûddkl}|i|ƒ}|iƒ}|itƒ|i}|it|ƒdƒ|\}}|i|ddƒ|i t |d|ƒƒ|it|di ƒdƒ|i|di |dƒ|i|ddƒ|i t |d|ƒƒdS( Niÿÿÿÿ(RKiiR#iR9R$( R2RKRR RtMDPROVIDERS_WITH_PLUGINSRRRR'R(R;(RRKR4RRR<R=((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt#test_parse_mdproviders_with_pluginsÉs    cCs|iƒ}|itƒ|it|iƒdƒ|id}|it|tƒƒ|i|i dƒ|i|i dƒdS(NiR#Rtname( R RtMAKE_PLUGIN_ARG_NAMESRRRR'R(R RRP(RRR#((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_parse_make_plugin_namesØs   (R/R0RR RRR R"R*R+R5R7R>R@RCRERHRJRMRORR(((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyRs&            R cBseZd„ZRS(cKs|ii|ƒdS(N(t__dict__tupdate(RR((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt__init__ãs(R/R0RU(((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyR âss‹[plugin:foo] use = repoze.who.tests.test_config:DummyPlugin [plugin:bar] use = repoze.who.tests.test_config:DummyPlugin credentials = qux s«[general] request_classifier = repoze.who.tests.test_config:DummyPlugin challenge_decider = repoze.who.tests.test_config:DummyPlugin remote_user_key = ANOTHER_REMOTE_USER sË[general] request_classifier = classifier challenge_decider = decider [plugin:classifier] use = repoze.who.tests.test_config:DummyPlugin [plugin:decider] use = repoze.who.tests.test_config:DummyPlugin sy[identifiers] plugins = repoze.who.tests.test_config:DummyPlugin;klass1 repoze.who.tests.test_config:DummyPlugin s©[identifiers] plugins = foo;klass1 bar [plugin:foo] use = repoze.who.tests.test_config:DummyPlugin [plugin:bar] use = repoze.who.tests.test_config:DummyPlugin s|[authenticators] plugins = repoze.who.tests.test_config:DummyPlugin;klass1 repoze.who.tests.test_config:DummyPlugin s¬[authenticators] plugins = foo;klass1 bar [plugin:foo] use = repoze.who.tests.test_config:DummyPlugin [plugin:bar] use = repoze.who.tests.test_config:DummyPlugin sy[challengers] plugins = repoze.who.tests.test_config:DummyPlugin;klass1 repoze.who.tests.test_config:DummyPlugin s©[challengers] plugins = foo;klass1 bar [plugin:foo] use = repoze.who.tests.test_config:DummyPlugin [plugin:bar] use = repoze.who.tests.test_config:DummyPlugin sy[mdproviders] plugins = repoze.who.tests.test_config:DummyPlugin;klass1 repoze.who.tests.test_config:DummyPlugin s©[mdproviders] plugins = foo;klass1 bar [plugin:foo] use = repoze.who.tests.test_config:DummyPlugin [plugin:bar] use = repoze.who.tests.test_config:DummyPlugin sV[plugin:foo] use = repoze.who.tests.test_config:DummyPlugin name = name iface = iface tTestConfigMiddlewarecBsMeZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z RS(cCsdS(N((R((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pytsetUp\scCs4|idj o ddk}|i|iƒndS(Niÿÿÿÿ(ttempdirRtshutiltrmtree(RRY((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttearDown_s cCsddkl}|S(Niÿÿÿÿ(tmake_middleware_with_config(RR\(RR\((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt _getFactorydscCstddk}ddk}|iƒ}|_|ii|dƒ}t|dƒ}|i|ƒ|iƒ|i ƒ|S(Niÿÿÿÿswho.initw( tosttempfiletmkdtempRXtpathtjointopentwritetflushtclose(RttextR_R`RXRbR((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt _getTempfilehs     c Csddk}ddkl}ddkl}ddkl}tƒ}|iƒ}|itƒ}hdd6}|||d|dd d d ƒ} |i t | i |ƒd ƒ|i t | i |ƒd ƒ|i t | i |ƒdƒ|i | i | i ƒ|i | i iƒ|iƒdS(Niÿÿÿÿ(R8(RA(RFRRt config_filetlog_filetSTDOUTt log_leveltdebugiii(tloggingR2R8RARFtDummyAppR]Rit SAMPLE_CONFIGRRtregistryR'tloggertgetEffectiveLeveltDEBUG( RRoR8RARFtapptfactoryRbt global_conft middleware((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_sample_configss    cCsxddk}tƒ}|iƒ}|itƒ}hdd6}|||d|ddƒ}|i|iiƒ|iƒdS(NiÿÿÿÿRRRjRkRl( RoRpR]RiRqRRsRttINFO(RRoRvRwRbRxRy((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_sample_config_no_log_level„s     c Cs¦ddk}ddk}tƒ}|iƒ}|itƒ}|ii|idƒ}hdd6}|||d|d|ƒ}|i |i i ƒ|i ƒ|i ƒdS(Niÿÿÿÿswho.logRRRjRk(RoR_RpR]RiRqRbRcRXRRsRtR{tshutdown( RRoR_RvRwRbtlogfileRxRy((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyttest_sample_config_w_log_fileŽs      N( R/R0RRXRWR[R]RiRzR|R(((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyRVYs     s1[plugin:form] use = repoze.who.plugins.form:make_plugin login_form_qs = __do_login rememberer_name = auth_tkt [plugin:auth_tkt] use = repoze.who.plugins.auth_tkt:make_plugin secret = s33kr1t cookie_name = oatmeal secure = False include_ip = True [plugin:basicauth] use = repoze.who.plugins.basicauth:make_plugin realm = 'sample' [plugin:htpasswd] use = repoze.who.plugins.htpasswd:make_plugin filename = %(here)s/etc/passwd check_fn = repoze.who.plugins.htpasswd:crypt_check [general] request_classifier = repoze.who.classifiers:default_request_classifier challenge_decider = repoze.who.classifiers:default_challenge_decider [identifiers] plugins = form;browser auth_tkt basicauth [authenticators] plugins = htpasswd [challengers] plugins = form;browser basicauth [mdproviders] plugins = RpcBseZdZd„ZRS(cCs ||_gS(N(tenviron(RR€tstart_response((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyt__call__Ês N(R/R0RR€R‚(((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyRpÈs(((tunittesttTestCaseRR R&R3R6R:R?RBRDRGRIRLRNRQRVRqRp(((s@/usr/lib/python2.6/site-packages/repoze/who/tests/test_config.pyts" ß      m