Changeset 3554 in products for quintagroup.portlet.collection/trunk/quintagroup/portlet/collection
- Timestamp:
- Sep 14, 2012 9:53:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.portlet.collection/trunk/quintagroup/portlet/collection/tests/test_portlet.py
r3540 r3554 87 87 cat.indexObject(obj) 88 88 return obj 89 90 def test_render(self):91 r = self.renderer(context=self.portal, assignment=collection.Assignment(header=u"title"))92 r = r.__of__(self.folder)93 r.update()94 output = r.render()95 96 # this test failed due to changed behavior. We'll not output anything if the portlet does not point to a collection97 98 #self.failUnless('title' in output)99 #self.failUnless('<b>text</b>' in output)100 101 89 102 90 def test_collection_path_unicode(self): … … 189 177 def reset_memoize(inst): 190 178 # Decorator memoize adds attribute ('_memojito_') to class instance. 191 # It has cached function and their values so it should be deleted 179 # It has cached function and their values so it should be deleted 192 180 # for testing. 193 181 # Extra info: http://codereview.corp.quintagroup.com/171241/show 194 182 if hasattr(inst, '_memojito_'): 195 183 delattr(inst, '_memojito_') 196 184 197 185 # set up our portlet renderer 198 186 mapping = PortletAssignmentMapping()
Note: See TracChangeset
for help on using the changeset viewer.