def testGetPhotos(self): """ """ pm = IPhotoManagement(self.product_1) ids = [p.getId() for p in pm.getPhotos()] self.assertEqual(ids, ["photo_1", "photo_2"])
def testGetPhotos(self): """ """ pm = IPhotoManagement(self.product_1) ids = [p.getId() for p in pm.getPhotos()] self.assertEqual(ids, ["product_1"])
def testGetPhotos(self): """ """ pm = IPhotoManagement(self.product_1) self.assertEqual(pm.getPhotos(), [])
def getPhotos(self): """ """ pm = IPhotoManagement(self.context) return pm.getPhotos()
def testGetPhotos(self): """ """ pm = IPhotoManagement(self.product_1) self.assertEqual(pm.getPhotos(), [])
def getPhotos(self): """ """ pm = IPhotoManagement(self.context) return pm.getPhotos()