def test_balance_enumerated(self): amounts = [(p._id, float(i*10)) for i, p in enumerate(self.products)] self.submit_xml_form(balance_enumerated(amounts)) for product, amt in amounts: self.check_product_stock(self.sp, product, amt, 0)
def test_balance_enumerated(self): amounts = [(p._id, float(i * 10)) for i, p in enumerate(self.products)] self.submit_xml_form(balance_enumerated(amounts)) for product, amt in amounts: self.check_product_stock(self.sp, product, amt, 0)