def testSpaceIsNotAllowedAsDecimalPoint(self): try: masked.AmountCtrl(self.frame, locale_conventions=LocalConv(decimal_point=' ')) self.fail('Expected ValueError') # pragma: no cover except ValueError: pass
def testMultiCharThousandsSeparator(self): masked.AmountCtrl(self.frame, locale_conventions=LocalConv(thousands_sep='..'))
def testNonAsciiThousandsSeparator(self): masked.AmountCtrl(self.frame, locale_conventions=LocalConv(thousands_sep=u'�', grouping=[3, 3, 3]))
def testNonAsciiDecimalPoint(self): masked.AmountCtrl(self.frame, locale_conventions=LocalConv(decimal_point=u'�'))
def testCommaAsBothDecimalSepAndThousandsSepAndGrouping(self): masked.AmountCtrl(self.frame, locale_conventions=LocalConv(decimal_point=',', thousands_sep=',', grouping=[3, 3, 3]))
def testCommaAsDecimalSepAndNoGrouping(self): masked.AmountCtrl(self.frame, locale_conventions=LocalConv(decimal_point=','))
def testDefaultLocalConventions(self): masked.AmountCtrl(self.frame, locale_conventions=LocalConv())
def setUp(self): super(AmountCtrlTest, self).setUp() self.amountCtrl = masked.AmountCtrl(self.frame)