diff options
Diffstat (limited to 'tests/python/corelib/numerics/CommodityAmount.py')
-rw-r--r-- | tests/python/corelib/numerics/CommodityAmount.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/python/corelib/numerics/CommodityAmount.py b/tests/python/corelib/numerics/CommodityAmount.py index e29d091a..923fab69 100644 --- a/tests/python/corelib/numerics/CommodityAmount.py +++ b/tests/python/corelib/numerics/CommodityAmount.py @@ -8,16 +8,18 @@ from ledger import amount internalAmount = amount.exact - class CommodityAmountTestCase(unittest.TestCase): def setUp(self): + amount.initialize() + # Cause the display precision for dollars to be initialized to 2. x1 = amount("$1.00") self.assertTrue(x1) amount.full_strings = True # makes error reports from UnitTests accurate - + def tearDown(self): amount.full_strings = False + amount.shutdown() def assertValid(self, amt): self.assertTrue(amt.valid()) |