;ò G"Ü=c@s«dklZlZdklZlZlZdklZdk l Z dk l Z defd„ƒYZ defd„ƒYZd efd „ƒYZd „Zd „Zd S((s makeSuites TestSuite(s SquishdotBases PlainBases Demo2Base(smanage_addSquishdot(s FieldIndex(s TextIndexsSquishSiteTestscBs}tZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „ZRS(NcCsdS(s/Test Squishdot Site creation using Fancy Demo 1N((sself((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys testCreation1 scCsÂhdt<dt<dt<dt<dt<dt<dt<}xa|iiƒD]P}|iƒ}|i |i |ƒd|ƒ|i t |||ƒƒ||=qUW|i |d | ƒd S( s$Test the correct indexes are createds meta_typesauthors textToSearchssubjectsreviewedsdatestitlesUnexpected index:sIndexes not found:N( s FieldIndexs TextIndexsmappingsselfsSites index_objectssindexsgetIdsids failUnlessshas_keys isinstancesfailIf(sselfsindexsmappingsid((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys testIndexessE   cCsU|iiƒ}|iƒddddddddg}|iƒ|i||ƒd S( s-Test the correct metadata columns are createdssummarys date_postedsidstitles reply_cntsauthors thread_pathsdateN(sselfsSitesschemasactualssortsexpecteds assertEqual(sselfsexpectedsactual((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys testMetadata"s   cCst|idddƒdS(s/Test Squishdot Site creation using Fancy Demo 2s testSquish2s default_docsdemo2N(smanage_addSquishdotsselfsFolder(sself((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys testCreation2*scCst|idddƒdS(s-Test Squishdot Site creation using Plain Demos testSquish3s default_docsplainN(smanage_addSquishdotsselfsFolder(sself((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys testCreation3.scCsA|iidgdƒ}|djp |djp t| ‚dS(s?Test Render Method doesn't wrap in when doing STXssSTXs/

N(sselfsSitesrendershtmlsAssertionError(sselfshtml((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys testRender12scCsA|iidgdƒ}|djp |djp t| ‚dS(sETest 2 for Render Method doesn't wrap in when doing STXstestsSTXs

test

s

test

N(sselfsSitesrendershtmlsAssertionError(sselfshtml((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys testRender27scCs|iiddddƒdS(s)test mange_edit works when called not TTWisarticlesiN(sselfsSites manage_edit(sself((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pystestManageEdit<scCsâ|i}|iddddƒ|iƒ pt‚|iddddddd d d d d d ddddddƒ |iƒpt‚|iƒ}|id|ddddddd d d d d d ƒ}|iƒpt‚dS(sPtest unmoderated_postings works when a reply is posted and moderation is enabledisarticlesistitlestestSquishSiteAddPostingsauthorstestersbodysemailsnotifyisencodingsPlainssubjects test subjectssummarysdeptsobjectstestArticleAddPostingN( sselfsSitesSs manage_editsunmoderated_postingssAssertionErrors _addPostings _getPostingsparentsid(sselfsSsparentsid((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pystestUnmoderatedPostings1@s.      cCsY|i}|iƒ}|id|dddddddddd d d ƒ}|iƒd S( s#test recatalogPostings doesn't barfsobjectstitlestestArticleAddPostingsauthorstestersbodysemailsnotifyisencodingsPlainN(sselfsSitesSs _getPostingsparents _addPostingsidsrecatalogPostings(sselfsSsparentsid((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pystestRecatalogPostings_s    cCsä|i}|iƒ}|id|dddddddddd d d ƒ}|i}|it |ƒƒy|||}Wnt j onX|i d ƒ|it |ƒƒy||}Wnt j onX|i d ƒdS(s*test delete of articles and comments workssobjectstitlestestArticleAddPostingsauthorstestersbodysemailsnotifyisencodingsPlainsComment not deletedsArticle not deletedN( sselfsSitesSs _getPostingsparents _addPostingsids parent_idsdelItemsintspsKeyErrorsfail(sselfsparentsps parent_idsSsid((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pystestDeleteItemsns.      cCs |ii|i|iiƒdS(s%Check that previewPosting doesnt barfN(sselfsSitespreviewPostingsREQUEST(sself((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pystestPreviewPostingscCs¢|i}|iddddƒ|iƒ}|id|ddddd d d d d d d dƒ}|iƒpt ‚|i d| gƒ|iƒ pt ‚dS(sP Test that manage_review works when there's a posting to review isbothisobjectstitlestestArticleAddPostingsauthorstestersbodysemailsnotifyisencodingsPlainsidsN( sselfsSitesSs manage_edits _getPostingsparents _addPostingsidsunmoderated_postingssAssertionErrors manage_review(sselfsSsparentsid((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pystestManageReview”s    (s__name__s __module__s testCreation1s testIndexess testMetadatas testCreation2s testCreation3s testRender1s testRender2stestManageEditstestUnmoderatedPostings1stestRecatalogPostingsstestDeleteItemsstestPreviewPostingstestManageReview(((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pysSquishSiteTests s           " sSquishSiteDemo2TestscBstZd„Zd„ZRS(NcCsdS(s/Test Squishdot Site creation using Fancy Demo 2N((sself((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys testCreation­scCs |ii|i|iiƒdS(s%Check that previewPosting doesnt barfN(sselfsSitespreviewPostingsREQUEST(sself((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pystestPreviewPosting±s(s__name__s __module__s testCreationstestPreviewPosting(((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pysSquishSiteDemo2Tests«s sSquishSitePlainTestscBstZd„Zd„ZRS(NcCsdS(s-Test Squishdot Site creation using Plain DemoN((sself((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys testCreation·scCs |ii|i|iiƒdS(s%Check that previewPosting doesnt barfN(sselfsSitespreviewPostingsREQUEST(sself((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pystestPreviewPosting»s(s__name__s __module__s testCreationstestPreviewPosting(((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pysSquishSitePlainTestsµs cCs)tttƒttƒttƒfƒSdS(N(s TestSuites makeSuitesSquishSiteTestssSquishSiteDemo2TestssSquishSitePlainTests(((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys test_suite¿scCstƒiƒdS(N(s test_suitesdebug(((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pysdebugÆsN(sunittests makeSuites TestSuitesbases SquishdotBases PlainBases Demo2BasesProducts.Squishdotsmanage_addSquishdots,Products.PluginIndexes.FieldIndex.FieldIndexs FieldIndexs*Products.PluginIndexes.TextIndex.TextIndexs TextIndexsSquishSiteTestssSquishSiteDemo2TestssSquishSitePlainTestss test_suitesdebug( s TestSuitesSquishSiteDemo2Testss TextIndexsSquishSitePlainTestss makeSuites FieldIndexsmanage_addSquishdots PlainBases test_suites SquishdotBasesdebugsSquishSiteTestss Demo2Base((sG/mnt/gmirror/ports/www/squishdot/work/Squishdot/tests/testSquishSite.pys?s   ¢