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

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

        self.assertEqual(ids, ["image_1", "image_2"])
예제 #3
0
 def testGetMainImage(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.getMainImage().getId(), "product_1")
예제 #4
0
 def testHasImage(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.hasImages(), True)
예제 #5
0
 def testGetImages(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.getImages(), [])
예제 #6
0
 def testGetMainImage(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.getMainImage().getId(), "product_1")
예제 #7
0
 def testHasImage(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.hasImages(), True)
예제 #8
0
 def testGetImages(self):
     """
     """
     pm = IImageManagement(self.product_1)
     self.assertEqual(pm.getImages(), [])