예제 #1
0
 def test_imagesImportedCorrectly(self):
     """ Tests if images were imported correctly
     """
     brains = self.rootEpubFolder["Pictures"].getFolderContents({"portal_type": "Image"})
     img1 = brains[0].getObject()
     self.failUnless(IImportedImage.providedBy(img1))
     self.failUnless(len(brains) == 9)
예제 #2
0
 def test_imagesImportedCorrectly(self):
     """ Tests if images were imported correctly
     """
     brains = self.rootEpubFolder['Pictures'].getFolderContents(
                                         {'portal_type': 'Image'})
     img1 = brains[0].getObject()
     self.failUnless(IImportedImage.providedBy(img1))
     self.failUnless(len(brains) == 9)
예제 #3
0
 def isImportedImage(self):
     """ Boolean if Epub IImportedImage is provided by current context
     """
     return IImportedImage.providedBy(self.context)
예제 #4
0
파일: epub_utils.py 프로젝트: eea/eea.epub
 def isImportedImage(self):
     """ Boolean if Epub IImportedImage is provided by current context
     """
     return IImportedImage.providedBy(self.context)