diff options
Diffstat (limited to 'tests/python/numerics/BasicAmount.py')
-rw-r--r-- | tests/python/numerics/BasicAmount.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/python/numerics/BasicAmount.py b/tests/python/numerics/BasicAmount.py index 9e2c1b3e..9654f6a7 100644 --- a/tests/python/numerics/BasicAmount.py +++ b/tests/python/numerics/BasicAmount.py @@ -372,7 +372,8 @@ class BasicAmountTestCase(unittest.TestCase): x1 = amount(1234.56) self.assertTrue(x1) - self.assertEqual(1234, int(x1)) + self.assertRaises(exceptions.ArithmeticError, amount.to_long, x1) + self.assertEqual(1234, x1.to_long(True)) self.assertEqual(1234.56, float(x1)) self.assertEqual("1234.56", x1.to_string()) self.assertEqual("1234.56", x1.quantity_string()) |