diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-07 10:25:25 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:39 -0400 |
commit | c211335760f2c5883aed34c31aeb6ce7e8e51bf9 (patch) | |
tree | a8b6f4fcfb971ef2eee06bce22e1aab25d9ad4ef /tests/python/numerics/CommodityAmount.py | |
parent | a07e20c14e5ba3597a855276ad9a195343aee42f (diff) | |
download | ledger-c211335760f2c5883aed34c31aeb6ce7e8e51bf9.tar.gz ledger-c211335760f2c5883aed34c31aeb6ce7e8e51bf9.tar.bz2 ledger-c211335760f2c5883aed34c31aeb6ce7e8e51bf9.zip |
Extended Python amount class.
Diffstat (limited to 'tests/python/numerics/CommodityAmount.py')
-rw-r--r-- | tests/python/numerics/CommodityAmount.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/python/numerics/CommodityAmount.py b/tests/python/numerics/CommodityAmount.py index 5c177044..0edd9fad 100644 --- a/tests/python/numerics/CommodityAmount.py +++ b/tests/python/numerics/CommodityAmount.py @@ -178,8 +178,8 @@ class CommodityAmountTestCase(unittest.TestCase): x10 = amount("-123.45€") self.assertTrue(x0.is_null()) - self.assertTrue(x0.zero()) - self.assertTrue(x0.realzero()) + self.assertTrue(x0.is_zero()) + self.assertTrue(x0.is_realzero()) self.assertTrue(x0.sign() == 0) self.assertTrue(x0.compare(x1) < 0) self.assertTrue(x0.compare(x2) > 0) @@ -543,8 +543,8 @@ class CommodityAmountTestCase(unittest.TestCase): x1 = amount(internalAmount("$0.000000000000000000001")) self.assertFalse(x1) - self.assertTrue(x1.zero()) - self.assertFalse(x1.realzero()) + self.assertTrue(x1.is_zero()) + self.assertFalse(x1.is_realzero()) self.assertValid(x1) |