Changeset 2043 in products


Ignore:
Timestamp:
Mar 31, 2010 9:27:10 AM (14 years ago)
Author:
fenix
Message:

added compatibility for Plone 4, removed unnecessary tests

File:
1 edited

Legend:

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

    r2018 r2043  
    6666        return wrapper and wrapper or obj 
    6767 
    68     def testForPortal(self): 
    69         wrapper = self.get_indexable_wrapper(self.portal) 
    70         self.assertFalse(wrapper is None, "No indexer registered for portal object") 
    71  
    7268    def testForAT(self): 
    7369        wrapper = self.get_indexable_wrapper(self.my_doc) 
    7470        self.assertFalse(wrapper is None, "No indexer registered for document object") 
    75  
    76     def testCanonicalPathForPortal(self): 
    77         wrapper =  self.get_indexable_wrapper(self.portal) 
    78         self.assertTrue(hasattr(wrapper, 'canonical_path'), 
    79             "'canonical_path' attribute not accessible with indexer wrapper for portal object") 
    8071 
    8172    def testCanonicalPathForAT(self): 
     
    8374        self.assertTrue(hasattr(wrapper, 'canonical_path'), 
    8475            "'canonical_path' attribute not accessible with indexer wrapper for Document object") 
    85  
    86     def testCanonicalLinkForPortal(self): 
    87         wrapper = self.get_indexable_wrapper(self.portal) 
    88         self.assertTrue(hasattr(wrapper, 'canonical_link'), 
    89             "'canonical_link' attribute not accessible with indexer wrapper for portal object") 
    9076 
    9177    def testCanonicalLinkForAT(self): 
Note: See TracChangeset for help on using the changeset viewer.