def testGetImages(self):
        """
        """
        pm = IImageManagement(self.product_1)
        ids = [p.getId() for p in pm.getImages()]

        self.assertEqual(ids, ["image_1", "image_2"])
    def testGetImages(self):
        """
        """
        pm = IImageManagement(self.product_1)
        ids = [p.getId() for p in pm.getImages()]

        self.assertEqual(ids, ["image_1", "image_2"])
 def testGetMainImage(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.getMainImage().getId(), "product_1")
 def testHasImage(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.hasImages(), True)
 def testGetImages(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.getImages(), [])
 def testGetMainImage(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.getMainImage().getId(), "product_1")
 def testHasImage(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.hasImages(), True)
 def testGetImages(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.getImages(), [])