+ self.assertEqual(p.manage_stock_amount, e)
"""Tests the decreasing of the stock amount
- # By default the stock amount is managed by LFS and the stock amount
- # is decrease when a product has been sold.
+ # By default the stock amount is not managed by LFS and the stock
+ # amount is not decrease when a product has been sold.
- self.assertEqual(self.p1.stock_amount, 1)
- # Now we remove the management of the stock amount
- self.p1.manage_stock_amount = False
+ self.assertEqual(self.p1.stock_amount, 2)
+ # Now we add the management of the stock amount
+ self.p1.manage_stock_amount = True
# We try to decrease the stock amount ...