mς CγΈEc@sήdZdkZdkZdkZdkZdkZdklZdkl Z ye Wn)e j odk Z e i dZ nXeiieiieiie ƒdƒƒZdeieƒZdeifd„ƒYZdS( s$Support code shared among the tests.N(s ConfigLoader(surljoinitinputs file://%s/tTestBasecBsPtZdZd„Zd„Zed„Zdd„Zded„Zd„Z RS(s:Utility methods which can be used with the schema support.cCs+|i|ƒ}|i||ƒ}||fS(N(tselft load_schemat schema_urltschemat load_configtconf_urltconf(RRRRR((t4/data/zmath/zope/lib/python/ZConfig/tests/support.pyt load_both)scCsDtt|ƒ|_ti|iƒ|_|i|ii ƒƒ|iS(N( turljoint CONFIG_BASEtrelurlRturltZConfigt loadSchemaRtassert_t issection(RR ((R R.scCs+ti|ƒ}ti||ƒ|_|iS(N(tStringIOttexttsioRtloadSchemaFileRRR(RRRR((R tload_schema_text4sicCsYtt|ƒ}|i|ƒ}|i|ƒ\|_|_ |i t |i ƒ|ƒ|iS(N( R R RRtcreate_config_loaderRtloadertloadURLRthandlerst assertEqualtlent num_handlers(RRRRR((R R9s cCs\ti|ƒ}|i|ƒ}|i||ƒ\|_ |_ |i t |i ƒ|ƒ|i S(N(RRRRRRRtloadFileRRRRRR(RRRRRRR((R tload_config_text@s cCs t|ƒS(N(t ConfigLoaderR(RR((R RGs( t__name__t __module__t__doc__R RtNoneRRR R(((R R&s     (R$tosRtunittestturllibRtZConfig.loaderR!t ZConfig.urlR t__file__t NameErrortsystargvtpathtabspathtjointdirnametdt pathname2urlR tTestCaseR( R R-R RR3RR'R(RR!R&R+((R t?s        -