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