Changeset 1704 in products for quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/tests.py
- Timestamp:
- Feb 10, 2010 8:30:33 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/tests.py
r1703 r1704 85 85 self.logout() 86 86 87 def testCatalogUpdateOnInstallation(self): 88 self.loginAsPortalOwner() 89 fp = self.portal['front-page'] 90 cpadapter = queryAdapter(fp, ICanonicalPath) 91 cpfp = cpadapter.canonical_path() 92 cpbrain = self.catalog(path='/'+fp.absolute_url(1))[0].canonical_path 93 self.assertTrue(cpfp == cpbrain, 94 "Catalog not updated on installation: canonical path from adapter: " \ 95 "'%s' not equal to brain data: '%s'" % (cpfp, cpbrain)) 96 97 self.logout() 98 87 99 88 100 def test_suite():
Note: See TracChangeset
for help on using the changeset viewer.