Need help cloning? Visit
is a free Git and Mercurial client for Windows.
is a free Git and Mercurial client for Mac.
- self.assertEqual(p.manage_stock_amount, True)
+ self.assertEqual(p.manage_stock_amount, False)
"""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 ...