def test_isSection(self):
     compilation = self.portal._getOb('compilation001')
     tochelper = TableOfContentsHelpers(compilation, {})
     items = tochelper.getContentItems()
     for item in items:
         self.assertTrue(ISection.providedBy(item))
 def test_isSection(self):
     compilation = self.portal._getOb('compilation001')
     tochelper = TableOfContentsHelpers(compilation, {}) 
     items = tochelper.getContentItems()
     for item in items:
         self.assertTrue(ISection.providedBy(item))
 def test_getContentItems(self):
     compilation = self.portal._getOb('compilation001')
     tochelper = TableOfContentsHelpers(compilation, {})
     items = tochelper.getContentItems()
     self.assertTrue(len(items) == 3)
 def test_getContentItems(self):
     compilation = self.portal._getOb('compilation001')
     tochelper = TableOfContentsHelpers(compilation, {}) 
     items = tochelper.getContentItems()
     self.assertTrue(len(items)==3)