Пример #1
0
 def test_parse_money_amount_rejects_ambiguous_numbers(self):
     with self.assertRaises(AmbiguousNumber):
         LOCALE_EN.parse_money_amount("10,00", 'EUR')
Пример #2
0
 def test_parse_money_amount_rejects_irregular_numbers(self):
     with self.assertRaises(AmbiguousNumber):
         LOCALE_EN.parse_money_amount(",100,100", 'USD')
Пример #3
0
 def test_parse_money_amount_rejects_overly_precise_numbers(self):
     with self.assertRaises(InvalidNumber):
         LOCALE_EN.parse_money_amount("100.00001", 'EUR')
Пример #4
0
 def test_parse_money_amount_rejects_ambiguous_numbers(self):
     with self.assertRaises(AmbiguousNumber):
         LOCALE_EN.parse_money_amount("10,00", 'EUR')
Пример #5
0
 def test_parse_money_amount_rejects_irregular_numbers(self):
     with self.assertRaises(AmbiguousNumber):
         LOCALE_EN.parse_money_amount(",100,100", 'USD')
Пример #6
0
 def test_parse_money_amount_rejects_overly_precise_numbers(self):
     with self.assertRaises(InvalidNumber):
         LOCALE_EN.parse_money_amount("100.00001", 'EUR')