mò %á¸Ec@sVdZdkZdeifd„ƒYZd„ZedjoeiddƒndS(s9 Unit tests for Products.PageTemplates.ZRPythonExpr $Id Nt MiscTestscBs#tZd„Zd„Zd„ZRS(NcCs{dkl}dg}dg}hdd<}hd|<d|<d|<}|d„|ƒ}|i||j|ƒdS(N(s call_with_nstcontexttheretrequesticCs|iS(N(ttdtthis(R((tL/data/zmath/zope/lib/python/Products/PageTemplates/tests/testZRPythonExpr.pyts( t#Products.PageTemplates.ZRPythonExprt call_with_nsRRRtnamestresulttselft failUnless(R R RRR RR ((Rt(test_call_with_ns_prefer_context_to_here s   !cCsWdkl}hdd<}hd|<}|d„|ƒ}|i|dj|ƒdS(N(s call_with_nsRicCs|iS(N(RR(R((RRs(RR RR R R R tNone(R R RR R ((Rt$test_call_with_ns_no_context_or_heres  cCscdkl}dg}dg}hd|<d|<}d„}|||ƒ}|i|hƒdS(N(s call_with_nsRRcCsO|iƒ}|iƒ}|iƒ}|i|ƒ|i|ƒ|i|ƒ|S(N(Rt_poptnst instance_dictRt_push(RRRR((Rt _find_requests      ( RR RRR RR R t assertEqual(R R RRR RR ((Rttest_call_with_ns_no_requests    (t__name__t __module__RRR(((RRs cCs titƒS(N(tunittestt makeSuiteR(((Rt test_suite+st__main__t defaultTestR(t__doc__RtTestCaseRRRtmain(RRR((Rt?s  $