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