mò 0á¸Ec@sídZdkZdkZedjo$eeiieiddƒƒndklZdk l Z l Z dk l Z dk l Z dkZd klZd klZd „Zd eifd „ƒYZd„Zedjo eƒndS(sNPlaceless setup tests $Id: testPlaceless.py 66219 2006-03-27 01:29:34Z shh $ Nt__main__is framework.py(s ZopeTestCase(ssetUpstearDown(szcml(stemporaryPlacelessSetUp(sIAdapted(s AdaptablecCs@tidtiƒtidtiƒtidtiiƒdS(Ns meta.zcmlspermissions.zcmlsdirectives.zcml(tzcmlt load_configtProductstFivettests(((tA/data/zmath/zope/lib/python/Testing/ZopeTestCase/testPlaceless.pyt setupZCML!stTestPlacelessSetUpcBsqtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z RS( s'Tests ZopeTestCase with placeless setupcCs tƒdS(N(ttearDown(tself((Rt afterSetUp*scCs tƒdS(N(R (R ((RtbeforeTearDown-scCs7tƒtƒttƒƒ}|i|iƒdƒdS(NsAdapted: The method(tsetUpRtIAdaptedt AdaptabletadaptedR t assertEqualt adaptedMethod(R R((Rt testSimple0scGsttƒƒ}tS(N(RRRtTrue(R targsR((Rtfunc8scCs|it|iƒdS(N(R t assertRaisest TypeErrorR(R ((RttestNoCA<scCs(tƒtƒ|i|iƒtƒdS(N(R RR RRR(R ((RttestAvailableCA?scCs,t|idtƒ}|i|ƒtƒdS(Nt required_zcml(ttemporaryPlacelessSetUpR RRtfRR(R R((RttestDecoratorLoadsZCMLCallableDscCs/t|idtfƒ}|i|ƒtƒdS(NR(RR RRRRR(R R((RttestDecoratorLoadsZCMLIterableHscCs/t|idtdtƒ}|it|ƒdS(Ntplaceless_availableR(RR RtFalseRRRR(R R((Rt#testPlacelessFlagDisablesDecorationLscCs,t|iƒ}|i|dtƒtƒdS(NR(RR RRRRR(R R((Rt"testDecoratedFuncLoadsZCMLCallablePscCs/t|iƒ}|i|dtfƒtƒdS(NR(RR RRRRR(R R((Rt"testDecoratedFuncLoadsZCMLIterableTs(t__name__t __module__t__doc__R R RRRRRRR"R#R$(((RR's           cCs3dkl}l}|ƒ}|i|tƒƒ|S(N(s TestSuites makeSuite(tunittestt TestSuitet makeSuitetsuitetaddTestR(R)R*R+((Rt test_suiteYs (R'tostsysR%texecfiletpathtjointTestingt ZopeTestCasetTesting.ZopeTestCase.placelessR R RRtProducts.Five.testsRtProducts.Five.tests.adaptersRRRRR-t framework( RRR4R RR/R R-RRRRR.((Rt?s $       2