Beispiel #1
0
 def testSpaceIsNotAllowedAsDecimalPoint(self):
     try:
         entry.AmountEntry(self.frame,
                           localeconv=LocalConv(decimal_point=' '))
         self.fail('Expected ValueError')  # pragma: no cover
     except ValueError:
         pass
Beispiel #2
0
 def setUp(self):
     super(AmountEntryTest, self).setUp()
     self.amountEntry = entry.AmountEntry(self.frame)
Beispiel #3
0
 def testMultiCharThousandsSeparator(self):
     entry.AmountEntry(self.frame, localeconv=LocalConv(thousands_sep='..'))
Beispiel #4
0
 def testNonAsciiThousandsSeparator(self):
     entry.AmountEntry(self.frame,
                       localeconv=LocalConv(thousands_sep=u'é',
                                            grouping=[3, 3, 3]))
Beispiel #5
0
 def testNonAsciiDecimalPoint(self):
     entry.AmountEntry(self.frame, localeconv=LocalConv(decimal_point=u'é'))
Beispiel #6
0
 def testCommaAsBothDecimalSepAndThousandsSepAndGrouping(self):
     entry.AmountEntry(self.frame,
                       localeconv=LocalConv(decimal_point=',',
                                            thousands_sep=',',
                                            grouping=[3, 3, 3]))
Beispiel #7
0
 def testCommaAsDecimalSepAndGrouping(self):
     entry.AmountEntry(self.frame,
                       localeconv=LocalConv(decimal_point=',',
                                            grouping=[3, 3, 3]))
Beispiel #8
0
 def testDefaultLocalConventions(self):
     entry.AmountEntry(self.frame, localeconv=LocalConv())