Exemplo n.º 1
0
 def test_parse_money_amount_rejects_ambiguous_numbers(self):
     with self.assertRaises(AmbiguousNumber):
         LOCALE_EN.parse_money_amount("10,00", 'EUR')
Exemplo n.º 2
0
 def test_parse_money_amount_rejects_irregular_numbers(self):
     with self.assertRaises(AmbiguousNumber):
         LOCALE_EN.parse_money_amount(",100,100", 'USD')
Exemplo n.º 3
0
 def test_parse_money_amount_rejects_overly_precise_numbers(self):
     with self.assertRaises(InvalidNumber):
         LOCALE_EN.parse_money_amount("100.00001", 'EUR')
Exemplo n.º 4
0
 def test_parse_money_amount_rejects_ambiguous_numbers(self):
     with self.assertRaises(AmbiguousNumber):
         LOCALE_EN.parse_money_amount("10,00", 'EUR')
Exemplo n.º 5
0
 def test_parse_money_amount_rejects_irregular_numbers(self):
     with self.assertRaises(AmbiguousNumber):
         LOCALE_EN.parse_money_amount(",100,100", 'USD')
Exemplo n.º 6
0
 def test_parse_money_amount_rejects_overly_precise_numbers(self):
     with self.assertRaises(InvalidNumber):
         LOCALE_EN.parse_money_amount("100.00001", 'EUR')