Changeset 1708 in products for quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/tests.py
- Timestamp:
- Feb 11, 2010 12:49:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/tests.py
r1705 r1708 68 68 69 69 70 71 # class TestInstallation(TestCase):72 73 # def afterSetUp(self):74 # self.qi = self.portal.portal_quickinstaller75 # self.qi.installProduct("quintagroup.canonicalpath")76 77 # self.purl = getToolByName(self.portal, 'portal_url')78 # self.catalog = getToolByName(self.portal, 'portal_catalog')79 80 # def testCatalogMetadata(self):81 # self.assertTrue('canonical_path' in self.catalog._catalog.names,82 # "'canonical_path' metadata not added to catalog.")83 84 # def testIndexer(self):85 # self.loginAsPortalOwner()86 # my_doc = makeContent(self.portal, portal_type='Document', id='my_doc')87 # my_doc.update(title='My document')88 89 # cpadapter = queryAdapter(my_doc, ICanonicalPath)90 # cpmydoc = cpadapter.canonical_path()91 # cpbrain = self.catalog(path='/'+my_doc.absolute_url(1))[0].canonical_path92 # self.assertTrue(cpmydoc == cpbrain,93 # "Canonical Path from adapter: '%s' not equals with brains data: '%s'" % (94 # cpmydoc, cpbrain))95 96 # self.logout()97 98 # def testCatalogUpdateOnInstallation(self):99 # self.loginAsPortalOwner()100 # fp = self.portal['front-page']101 # cpadapter = queryAdapter(fp, ICanonicalPath)102 # cpfp = cpadapter.canonical_path()103 # cpbrain = self.catalog(path='/'+fp.absolute_url(1))[0].canonical_path104 # self.assertTrue(cpfp == cpbrain,105 # "Catalog not updated on installation: canonical path from adapter: " \106 # "'%s' not equal to brain data: '%s'" % (cpfp, cpbrain))107 108 # self.logout()109 110 111 70 def test_suite(): 112 71 return unittest.TestSuite([ 113 72 unittest.makeSuite(TestAdapter), 114 #unittest.makeSuite(TestInstallation),115 73 ]) 116 74
Note: See TracChangeset
for help on using the changeset viewer.