Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def isImportedImage(self):
     """ Boolean if Epub IImportedImage is provided by current context
     """
     return IImportedImage.providedBy(self.context)
Exemplo n.º 4
0
 def isImportedImage(self):
     """ Boolean if Epub IImportedImage is provided by current context
     """
     return IImportedImage.providedBy(self.context)