def testGetTotalAmountOfProducts(self): """ """ pm = IProductManagement(self.portal.myshop.categories.category_1) self.assertEqual(pm.getTotalAmountOfProducts(), 2) pm = IProductManagement(self.portal.myshop.categories.category_2) self.assertEqual(pm.getTotalAmountOfProducts(), 0) pm = IProductManagement(self.portal.myshop.categories.category_1.category_11) self.assertEqual(pm.getTotalAmountOfProducts(), 2)
def testGetTotalAmountOfProducts(self): """ """ pm = IProductManagement(self.portal.myshop.categories.category_1) self.assertEqual(pm.getTotalAmountOfProducts(), 2) pm = IProductManagement(self.portal.myshop.categories.category_2) self.assertEqual(pm.getTotalAmountOfProducts(), 0) pm = IProductManagement( self.portal.myshop.categories.category_1.category_11) self.assertEqual(pm.getTotalAmountOfProducts(), 2)