Ignore:
Timestamp:
Feb 10, 2010 8:30:33 PM (14 years ago)
Author:
mylan
Message:

#133: Added test for catalog updation on installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/tests.py

    r1703 r1704  
    8585        self.logout() 
    8686 
     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 
    8799 
    88100def test_suite(): 
Note: See TracChangeset for help on using the changeset viewer.