mò 0á¸Ec@s›dZdklZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd „ƒYZd efd „ƒYZd efd „ƒYZdS(sMZopeTestCase interfaces $Id: interfaces.py 30300 2005-05-08 08:15:23Z shh $ (s Interfacet IZopeTestCasecBs5tZd„Zd„Zd„Zd„Zd„ZRS(NcCsdS(sbCalled after setUp() has completed. This is far and away the most useful hook. N((((t>/data/zmath/zope/lib/python/Testing/ZopeTestCase/interfaces.pyt afterSetUpscCsdS(syCalled before tearDown() is executed. Note that tearDown() is not called if setUp() fails. N((((RtbeforeTearDownscCsdS(sƒCalled after the fixture has been cleared. Note that this may occur during setUp() *and* tearDown(). N((((Rt afterClear"scCsdS(s‰Called before the ZODB connection is opened, at the start of setUp(). By default begins a new transaction. N((((Rt beforeSetUp(scCsdS(sˆCalled before the ZODB connection is closed, at the end of tearDown(). By default aborts the transaction. N((((Rt beforeClose.s(t__name__t __module__RRRRR(((RRs     t IZopeSecuritycBs5tZdd„Zdd„Zdd„Zd„ZRS(NcCsdS(sŽChanges the roles assigned to a user. If the 'name' argument is omitted, changes the roles of the default user. N((trolestname((RtsetRoles7scCsdS(s£Changes the permissions assigned to a role. If the 'role' argument is omitted, changes the permissions assigned to the default role. N((t permissionstrole((RtsetPermissions=scCsdS(s}Logs in as the specified user. If the 'name' argument is omitted, logs in as the default user. N((R ((RtloginCscCsdS(s Logs out.N((((RtlogoutIs(RRtNoneR RRR(((RR 5s   tIPortalTestCasecBstZd„Zd„ZRS(NcCsdS(sáReturns the portal object to the setup code. Will typically be overridden by subclasses to return the object serving as the "portal". Note: This method should not be called by tests! N((((Rt getPortalOscCsdS(sªCreates a memberarea for the specified user. Subclasses may override to provide a customized or more lightweight version of the memberarea. N((R ((RtcreateMemberareaWs(RRRR(((RRMs tIPortalSecuritycBstZdZRS(s+This is currently the same as IZopeSecurity(RRt__doc__(((RR^s t IProfiledcBstZd„ZRS(NcOsdS(srAllows to run a function under profiler control adding to the accumulated profiler statistics. N((tfunctargstkw((Rtruncallds(RRR(((RRbst IFunctionalcBs tZdddddd„ZRS(NtGETcCsdS(sŠPublishes the object at 'path' returning an extended response object. The path may contain a query string. N((tpathtbasictenvtextratrequest_methodtstdin((Rtpublishls(RRRR%(((RRjsN(Rt InterfaceRR RRRR(R RRRR&RR((Rt?s