def test_decimal_field(self):
decimal_field = CustomDecimalField(_form=self.mock_form, _name='aName')
self.assertIsInstance(decimal_field, Field)
try:
decimal_field.process_formdata(['NonDecimal'])
except:
self.fail("Exception should not be thrown by CustomDecimalField")
评论列表
文章目录