summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-27 10:09:00 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:32 -0400
commitd0e9822ed16cb36de4cb1171a89d4049c615f1a0 (patch)
treefa48eba60a56dee5bcf1ebd266d822c5a96e4323 /tests
parent0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f (diff)
downloadfork-ledger-d0e9822ed16cb36de4cb1171a89d4049c615f1a0.tar.gz
fork-ledger-d0e9822ed16cb36de4cb1171a89d4049c615f1a0.tar.bz2
fork-ledger-d0e9822ed16cb36de4cb1171a89d4049c615f1a0.zip
Moved around the Python code.
Diffstat (limited to 'tests')
-rw-r--r--tests/python/corelib/numerics/BasicAmount.py6
-rw-r--r--tests/python/corelib/numerics/CommodityAmount.py3
2 files changed, 0 insertions, 9 deletions
diff --git a/tests/python/corelib/numerics/BasicAmount.py b/tests/python/corelib/numerics/BasicAmount.py
index bfb67cf2..2ce532d9 100644
--- a/tests/python/corelib/numerics/BasicAmount.py
+++ b/tests/python/corelib/numerics/BasicAmount.py
@@ -4,12 +4,6 @@ import exceptions
from ledger import amount
class BasicAmountTestCase(unittest.TestCase):
- def setUp(self):
- amount.initialize()
-
- def tearDown(self):
- amount.shutdown()
-
def testConstructors(self):
x0 = amount()
x1 = amount(123456)
diff --git a/tests/python/corelib/numerics/CommodityAmount.py b/tests/python/corelib/numerics/CommodityAmount.py
index 923fab69..80f58b21 100644
--- a/tests/python/corelib/numerics/CommodityAmount.py
+++ b/tests/python/corelib/numerics/CommodityAmount.py
@@ -10,8 +10,6 @@ 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)
@@ -19,7 +17,6 @@ class CommodityAmountTestCase(unittest.TestCase):
def tearDown(self):
amount.full_strings = False
- amount.shutdown()
def assertValid(self, amt):
self.assertTrue(amt.valid())