From 6853db57e6fdb6fd95764be1f35af0006c9e2ef9 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 23 Apr 2007 04:42:44 +0000 Subject: All tests now working again. Reduced size of entity_t and transaction_t considerably. --- tests/python/corelib/numerics/CommodityAmount.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/python/corelib/numerics/CommodityAmount.py') 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()) -- cgit v1.2.3