Ignore:
Timestamp:
Feb 10, 2010 7:45:26 PM (14 years ago)
Author:
mylan
Message:

#133: Added installation tests: canonical_path metadata adding

File:
1 edited

Legend:

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

    r1700 r1701  
    5757            "for document, must be: '%s'" % (adcp, mydoc_cp) ) 
    5858 
     59class TestInstallation(TestCase): 
     60 
     61    def afterSetUp(self): 
     62        self.qi = self.portal.portal_quickinstaller 
     63        self.qi.installProduct("quintagroup.canonicalpath") 
     64 
     65        self.purl = getToolByName(self.portal, 'portal_url') 
     66        self.catalog = getToolByName(self.portal, 'portal_catalog') 
     67 
     68    def testCatalogMetadata(self): 
     69        self.assertTrue('canonical_path' in self.catalog._catalog.names, 
     70            "'canonical_path' metadata not added to catalog.") 
     71 
     72 
     73 
    5974def test_suite(): 
    6075    return unittest.TestSuite([ 
    6176        unittest.makeSuite(TestAdapter), 
     77        unittest.makeSuite(TestInstallation), 
    6278        ]) 
    6379 
Note: See TracChangeset for help on using the changeset viewer.