;ς )δHEc@scdkTeidƒd„Zdefd„ƒYZdefd„ƒYZdklZd„Z d S( (s*sZWikicCs@tiƒ}|ititƒƒ|ititƒƒ|SdS(N(sunittests TestSuitessuitesaddTests makeSuitesTestss BindingsTests(ssuite((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pys test_suites sTestscBstZd„ZRS(NcCs/tii}|itd„|iƒƒƒdS(NcCst|dƒ S(Ns meta_type(shasattrsx(sx((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pyss(sZWikisViewss TEMPLATESsselfsfailIfsfiltersvalues(sselfs TEMPLATES((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pystest_templatesHaveMetaType s (s__name__s __module__stest_templatesHaveMetaType(((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pysTests ss BindingsTestscBs_tZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z RS( s₯ Tests of template bindings and acquisition context, for eg #1285 and #1220. I want to test that "container" is the current page's folder in all cases. cCsti|ƒdS(N(s ZwikiTestCases afterSetUpsself(sself((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pys afterSetUpscCsMtid||i|iƒƒidƒ}|i|t |ii ƒƒƒdS(Nscontainer=(.*)i( sresmatchstemplatesselfspagesrequestsgroups containers assertEqualssreprsfolder(sselfstemplates container((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pyscheckContainerIsFolders*cCs#|iidƒ}|i|ƒdS(Ns testtemplate(sselfspagesgetSkinTemplatestemplatescheckContainerIsFolder(sselfstemplate((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pystest_bindingsCase1#scCsq|iidƒ}|it|ƒdƒt|i|ƒ|iidƒ}|it|ƒdƒ|i|ƒdS(Ns testtemplates^s^( sselfspagesgetSkinTemplatestemplates assertEqualssreprsinstallTemplateInZodbsfolderscheckContainerIsFolder(sselfstemplate((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pysXtest_bindingsCase2*scCst|iidƒ}|it|ƒdƒt|ii|ƒ|iidƒ}|it|ƒdƒ|i |ƒdS(Ns testtemplates^sY( sselfspagesgetSkinTemplatestemplates assertEqualssreprsinstallTemplateInZodbsfolders aq_parentscheckContainerIsFolder(sselfstemplate((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pysXtest_bindingsCase3;scCsdS(N((sself((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pystest_bindingsCase4NscCsdS(N((sself((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pystest_bindingsCase5TscCsdS(N((sself((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pystest_bindingsCase6ZscCsdS(N((sself((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pystest_bindingsCase7`s( s__name__s __module__s__doc__s afterSetUpscheckContainerIsFolderstest_bindingsCase1sXtest_bindingsCase2sXtest_bindingsCase3stest_bindingsCase4stest_bindingsCase5stest_bindingsCase6stest_bindingsCase7(((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pys BindingsTestss"         (sZopePageTemplatecCsZt|iƒ|i|iƒ}d|_|i|iƒƒ|iƒ}|i ||ƒdS(Ni( sZopePageTemplatestemplatesgetIds_texts content_typesobjsexpandswritesreadsidsfolders _setObject(sfolderstemplatesobjsid((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pysinstallTemplateInZodbfs   N( s testsupports ZopeTestCasesinstallProducts test_suites ZwikiTestCasesTestss BindingsTestss'Products.PageTemplates.ZopePageTemplatesZopePageTemplatesinstallTemplateInZodb(sTestssZopePageTemplates BindingsTestss test_suitesinstallTemplateInZodb((s;/mnt/gmirror/ports/www/zope-zwiki/work/ZWiki/Views_tests.pys?s   S