def test_parse_money_amount_rejects_ambiguous_numbers(self): with self.assertRaises(AmbiguousNumber): LOCALE_EN.parse_money_amount("10,00", 'EUR')
def test_parse_money_amount_rejects_irregular_numbers(self): with self.assertRaises(AmbiguousNumber): LOCALE_EN.parse_money_amount(",100,100", 'USD')
def test_parse_money_amount_rejects_overly_precise_numbers(self): with self.assertRaises(InvalidNumber): LOCALE_EN.parse_money_amount("100.00001", 'EUR')